-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbashrc.tobit
54 lines (43 loc) · 1.39 KB
/
bashrc.tobit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
## Prompt commands
export PS1="\u@\h:\w \$ "
## For transparency
[ -n "$XTERM_VERSION" ] && transset-df -a 0.90 >/dev/null
## PATHs
export PATH=$HOME/local/bin:$PATH
export PATH=$PATH:$HOME/.gem/ruby/2.0.0/bin
## Aliases for director traversal and listing
alias .='echo $PWD'
alias ..='cd ..'
alias cwd='echo $PWD'
alias home='cd ~; clear'
alias ls='/bin/ls --color -FCh'
alias la='/bin/ls --color -aCh'
alias ll='/bin/ls --color -lah'
## Safety Aliases
alias cp='cp -i -p'
alias mv='mv -i'
alias rm='rm -i'
## Sudo aliases
alias pacman="sudo pacman"
alias mount="sudo mount"
alias umount="sudo umount"
alias battery="acpi -b"
## Typo aliases
alias cd..='cd ..'
## Program shorcuts
alias uncommitted='uncommitted -w $HOME'
alias keybacklight='asus-kbd-backlight'
alias backlight='asus-screen-brightness'
alias git\?='git status -s'
alias tmux\?='tmux list-sessions'
alias tmux\!='tmux attach -t'
alias tintin='tintin -e "#session fl play.theforsakenlands.com 1848"'
## Awesome vim terminal commands
alias \:q='exit'
alias \:e='vim'
alias \:Q='exit' # common typo
alias \:E='vim' # common typo
alias importwin="xprop | grep WM_NAME\(STRING\) | grep -oP '\".*\"' | xargs -I window_id import -window window_id"
alias importgif="xprop | grep WM_NAME\(STRING\) | grep -oP '\".*\"' | xargs -I window_id import -adjoin -window window_id"
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'