a2763dce8f17de18813043be498c1a82b8cd047c
[~bandali/configs] / .bashrc
1 # If not running interactively, don't do anything
2 # [[ $- != *i* ]] && return
3
4 # aliases
5 alias ls='ls --color=auto'
6 alias mpv="mpv --ytdl-format mp4"
7 alias mv="mv -iv"
8 alias cp="cp -iv"
9 alias scl=systemctl
10 alias jcl=journalctl
11 alias m="mbsync csclub; mbsync uwaterloo; mbsync amin"
12 alias best="youtube-dl -f best"
13
14 aur() {
15 cd ~/usr/builds
16 git clone https://aur.archlinux.org/${1}.git
17 cd ${1}
18 }
19
20 # i-beam cursor
21 # echo -e "\033[5 q" # blinking
22 echo -e "\033[6 q" # non-blinking
23
24 a_prompt() {
25 cwd=$(pwd | sed -e "s!$HOME!~!" | sed -re "s!([^/])[^/]+/!\1/!g")
26 printf $cwd
27 }
28 PS1="\u@\h \$(a_prompt)> "