-
Notifications
You must be signed in to change notification settings - Fork 1
/
.bash_aliases
66 lines (60 loc) · 1.69 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
alias l='ls -CF'
alias l.='ls -d .*'
alias ll='ls -lh'
alias la='ls -A'
alias lal='ls -lha'
alias rm='rm -i'
alias rmf='rm -rf'
alias grep='\grep --color=auto'
alias fgrep='\fgrep --color=auto'
alias egrep='\egrep --color=auto'
# network tools
alias p='ping'
alias d='dig'
alias t='mtr'
alias ssh='ssh -v'
alias apt='sudo apt -qq'
alias apt-get='sudo -qq apt-get'
alias apti='sudo apt -qq install'
alias apty='sudo apt -qq install -y'
alias upd='sudo apt -qq update'
alias upg='sudo apt -qq upgrade'
alias updl='apt list --upgradable'
alias list='apt list'
alias cd..='\cd ..'
alias cd...='\cd ../..'
alias ..='\cd ..'
alias ...='\cd ../..'
alias ....='\cd ../../..'
alias .....='\cd ../../../..'
alias .3='\cd ../../..'
alias .4='\cd ../../../..'
alias .5='\cd ../../../../..'
# mix alias
# force tmux to assume the terminal supports 256 colours.
alias tmux='\tmux -2'
# enable to copy terminal standard output
alias copy='xclip -sel clip'
# load user environment variables/settings with sudo permission
alias sudo='\sudo -E'
# enable highlight in less
alias less='\less -R'
# enable color
alias tree='\tree -C'
alias c='clear'
alias h='history'
alias j='jobs -l'
alias svi='sudo vim'
alias du='\du -h'
alias df='\df -hT'
alias wgetncc='wget --no-check-certificate'
alias lnvm='. ~/.nvm/nvm.sh && . ~/.nvm/bash_completion' # load nvm
alias diff='colordiff'
alias preview="fzf --preview 'bat --color \"always\" {}'"
# cdnjs related tools
alias mini='~/repos/web-minify-helper/minify.sh'
alias vsp='vim ~/repos/cdnjs/.git/info/sparse-checkout'
alias grun='~/repos/autoupdate/autoupdate.js run'
alias run='~/repos/cdnjs/auto-update.js run'
alias view='~/repos/Tools/cdnjs/view.sh'
alias vc='~/repos/Tools/cdnjs/versionCompare.sh'