-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_aliases
67 lines (55 loc) · 1.31 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
## APPS
# python3
alias python='python3'
alias py='python'
alias ipython='ipython3'
alias ipy='ipython'
# chancellor-cli
alias ch='chancellor'
# R
alias r="radian"
## SHELL
# ls
alias ls='command ls -FH --color=auto '
alias ll='ls -lA '
alias l='ll'
# alias l='lsd --oneline --group-dirs first --almost-all --classify --color=always --icon-theme=unicode --long '
# ...
alias cd..='cd ..'
alias ..='cd ..'
alias ...='cd ../../..'
alias ....='cd ../../../..'
alias .....='cd ../../../..'
alias .3='cd ../../..'
alias .4='cd ../../../..'
alias .5='cd ../../../../..'
# install with apt-get
alias apt-get="sudo apt-get"
alias apt="sudo apt"
alias update='sudo apt-get update && sudo apt-get upgrade -y'
alias up="update"
# sudo
alias sudo='sudo '
alias su='sudo -i'
# careful
alias cp='cp -iv'
alias mv='mv -iv'
alias rm='rm -Iv'
alias mkdir='mkdir -p'
alias ps='ps auxf'
# Creates a directory and changes to it.
# Syntax: `mkcd <directory>`
function mkcd() {
if [ -z "$1" ]; then
echo "Usage: mkcd <path>"
echo "Help: mkcd creates a directory if it doesn't exist, then changes to it."
return 0
fi
mkdir -p -- "$@" && cd -P -- "$_" || exit
}
alias take=mkcd
# Stops ping after sending 4 ECHO_REQUEST packets.
alias ping='ping -c 4'
# experimental git alias
alias git='git.exe'
alias gh='gh.exe'