-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_aliases
79 lines (73 loc) · 2.02 KB
/
.bash_aliases
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
alias diff='diff --color=auto'
alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias co='compress'
alias cp='cp -i'
alias mroe='more'
alias mv='mv -i'
alias uc='uncompress'
alias ..='cd ..'
alias ...='cd ../../../'
alias .5='cd ../../../../.. '
alias fuck='thefuck'
alias vi='vim'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# Add an "alert" alias for long running commands. Use like so:
alias betty="/home/masonhsieh/betty/main.rb"
alias music="ncmpcpp"
alias clock="ncmpcpp -s clock"
alias visualizer="ncmpcpp -s visualizer"
alias news="newsbeuter"
alias email="mutt"
alias files="ranger"
alias audio="ncpamixer"
alias calender="calcurse"
alias ka="killall"
alias sv="sudo vim"
alias r="ranger"
alias ls='ls -hN --color=auto --group-directories-first'
alias g="git"
alias gitup="git push origin master"
alias mkdir="mkdir -pv"
alias crep="grep --color=always"
alias p="sudo pacman"
alias sdn="sudo shutdown now"
alias yt="youtube-dl -ic"
alias yta="youtube-dl -xic"
alias starwars="telnet towel.blinkenlights.nl"
alias nf="clear && neofetch"
alias terminix="tilix"
alias gpg=gpg2
# alias for RISC-V tool
# alias pk="/usr/riscv64-linux-gnu/bin/pk"
# alias volume="ncpamixer"
#tmux
alias tmuxkillt="tmux kill-session -t"
alias tmuxattach="tmux attach"
alias gitlog="git log --graph --pretty=oneline --abbrev-commit"
alias vbrc="vim ~/.bashrc.private"
alias vvrc="vim ~/.vimrc"
alias vtconf="vim ~/.tmux.conf.local"
alias ranger="python3 ~/ranger/ranger.py"
alias gitgrep="git grep -n"
alias tmuxrename="tmux rename-window -t"
alias vep2conf="/local/masonarc/AndeSight/AndeSight/sid/ins/vep2conf"
alias so="source"
#Docker
dockerkillcontainer() {
docker stop $@ && docker rm $@
}
dockerkillcontainerbyimage() {
image=$@
docker ps -a -q --filter ancestor=$image
docker rm $(docker stop $(docker ps -a -q --filter ancestor=$image --format="{{.ID}}"))
}
dockerattach() {
docker exec -u $1 -it $2 bash
}