-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.aliases
97 lines (83 loc) · 3.07 KB
/
.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# dtroyer .aliases
# OS-specific aliases
case `uname` in
CYGWIN_NT*)
alias root=""
alias df="df -m"
;;
AIX)
alias root="/usr/local/bin/sudo -u root ~/.profile-root exec"
alias df="df -m"
;;
Darwin)
alias root="/usr/bin/sudo -s"
alias df="df -m"
alias gpg2=gpg
;;
HP-UX)
alias root="/usr/local/bin/sudo -u root ~/.profile-root exec"
alias df="bdf"
;;
Linux)
alias root="/usr/bin/sudo -u root ~/.profile-root exec"
alias df="df -m"
alias linuxdepot="/usr/bin/sudo -H -u linuxdepot bash"
;;
SunOS)
alias root="/usr/local/bin/sudo -u root ~/.profile-root exec"
alias df="df -k"
;;
esac
alias cpan="perl -MCPAN -e shell"
alias killagent='kill $SSH_AGENT_PID'
alias ll='ls -l'
alias ls='ls'
alias lsd="ll | grep '^d'"
alias psg="ps -ef | grep $1"
alias os="openstack"
alias osd="openstack --debug -v -v -v"
alias ost="time openstack --timing"
alias mkdt-test="mkbranch dt-test"
alias sshfn="ssh -f -N"
if [[ -x $HOME/google-cloud-sdk/bin/gcutil ]]; then
alias gcloud="$HOME/google-cloud-sdk/bin/gcloud"
alias gc="$HOME/google-cloud-sdk/bin/gcloud"
alias gcutil="$HOME/google-cloud-sdk/bin/gcutil"
alias gcu="$HOME/google-cloud-sdk/bin/gcutil"
alias gsutil="$HOME/google-cloud-sdk/bin/gsutil"
alias gsu="$HOME/google-cloud-sdk/bin/gsutil"
fi
# k8s
alias k="kubectl"
alias kns='kubectl ${NAMESPACE:+-n $NAMESPACE}'
# Python virtualenvs
alias .ansible="source $HOME/lib/ansible/bin/activate"
alias .beets="source $HOME/lib/beets/bin/activate"
alias .dl="source $HOME/lib/dl/bin/activate"
alias .osc="source $HOME/lib/osc/bin/activate"
alias .oscdev="source $HOME/lib/osc-dev/bin/activate"
alias .tools="source $HOME/lib/tools/bin/activate"
alias gertty="$HOME/lib/gertty/bin/gertty"
# Ruby virtualenvs
alias .rvm="source $HOME/bin/rvm-activate"
alias .rvmuse='.rvm;v=$(sed -e 's/ruby-//' .ruby-version 2>/dev/null);rvm use ${v:-2.7.1}@$(basename $(pwd)) --create'
alias beet-mm="$HOME/lib/beets/bin/beet --config $HOME/.config/beets/config-mm.yaml"
alias bm="$HOME/lib/beets/bin/beet --config $HOME/.config/beets/config-mm.yaml"
alias bl="$HOME/lib/beets/bin/beet --config $HOME/.config/beets/config-local.yaml"
alias ytdl="$HOME/lib/dl/bin/yt-dlp --add-metadata"
alias ytdl-a="$HOME/lib/dl/bin/yt-dlp -x -f bestaudio[ext=m4a] --add-metadata"
alias ytdl-flac="$HOME/lib/dl/bin/yt-dlp -x --audio-format flac --add-metadata"
alias mt1x2="montage -geometry +0+0 -tile 1x2"
alias mt1x2r90="montage -geometry +0+0 -tile 1x2 -rotate 90"
alias mt1x3="montage -geometry +0+0 -tile 1x3"
alias mt1x3r90="montage -geometry +0+0 -tile 1x3 -rotate 90"
alias mt2x1="montage -geometry +0+0 -tile 2x1"
alias mt3x1="montage -geometry +0+0 -tile 3x1"
alias get-sliders="$HOME/src/seriesumei/Ruth2/Contrib/Serie\ Sumei/shapes/get-sliders.py"
alias wg-meshconf="$HOME/lib/wg-meshconf/bin/wg-meshconf"
[[ $(uname -r) =~ (WSL) ]]
if [[ -n "${BASH_REMATCH[1]}" ]]; then
alias choco="choco.exe"
alias explorer="explorer.exe"
alias wsl="wsl.exe"
fi