-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_aliases
51 lines (42 loc) · 1.09 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
# .bash_aliases
alias vi='vim'
alias wget='wget -c'
alias code='code-oss'
# power managment
alias poweroff='doas poweroff'
alias reboot='doas reboot'
# xbps
alias xi='doas xbps-install -S'
alias xrs='xbps-query -Rs'
alias xu='doas xbps-install -S; doas xbps-install -uy xbps; doas xbps-install -u'
alias xrm='doas xbps-remove -R'
alias xd='xbps-query -x'
alias xD='xbps-query -X'
# Colorize
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
# File managment
alias ..='cd ..'
alias ...='cd ../../../'
alias la='ls -A'
alias ll='ls -la'
alias l.='ls -d .*'
alias tree='tree -a -I ".git/"'
alias mkdir='mkdir -pv'
# Git
alias gs='git status'
alias glog='git log --graph --oneline --decorate'
alias commit='git commit -m'
alias add='git add'
alias pull='git pull --verbose'
alias push='git push --verbose'
# Rust / Cargo
alias cr='cargo run -q'
alias ct='cargo test'
alias cb='cargo build'
# Python
alias py='python'
# SSH for AWS server
#alias aws='ssh -i /path/to/key-file.pem [email protected]'