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