Commit | Line | Data |
---|---|---|
6b8582fa | 1 | # If not running interactively, don't do anything |
dc9a8087 | 2 | # [[ $- != *i* ]] && return |
6b8582fa | 3 | |
dc9a8087 | 4 | # aliases |
6b8582fa | 5 | alias ls='ls --color=auto' |
dc9a8087 AB |
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 | ||
6e7c85a8 AB |
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)> " |