7272bd4e043f10a0d8d1f252bae24fb1500ca2fb
1 # If not running interactively, don't do anything else
2 [[ $
- != *i
* ]] && return
4 # from https://unix.stackexchange.com/a/55935
6 cwd
=$
(sed -e "s:$HOME:~:" -e "s:\(\.\?[^/]\)[^/]*/:\1/:g" <<<$PWD)
9 PS1
="\u@\h \$(a_prompt)> "
12 # echo -e "\033[5 q" # blinking
13 # echo -e "\033[6 q" # non-blinking
20 HISTCONTROL
=ignoreboth
21 HISTIGNORE
='ls:l:s:g:[bf]g:history'
22 HISTTIMEFORMAT
='%F %T '
26 alias ls='ls --color=auto'
27 alias l
='ls -lh' # long format and human-readable sizes
28 alias ll
='l -A' # long format, all files
29 alias mpv
="mpv --ytdl-format mp4"
32 alias mbsync
='mbsync -c "$XDG_CONFIG_HOME"/isync/mbsyncrc'
33 alias getmail
='getmail --getmaildir "$XDG_CONFIG_HOME"/getmail --rcfile getmailrc'
34 alias mb
="mbsync csclub; mbsync uwaterloo; mbsync shemshak"
37 alias best
="youtube-dl -f best"
39 alias se
="SUDO_EDITOR=\"emacsclient\" sudo -e"
43 [ -d ${1} ] || git clone https
://aur.archlinux.org
/${1}.git
48 #include /usr/share/fzf/key-bindings.bash
49 #include /usr/share/fzf/completion.bash
51 if ! pgrep
-u "$USER" ssh-agent
> /dev
/null
; then
52 ssh-agent
> ~
/.ssh-agent-thing
54 if [[ ! "$SSH_AUTH_SOCK" ]]; then
55 eval "$(<~/.ssh-agent-thing)"