-
Notifications
You must be signed in to change notification settings - Fork 2
/
.aliases
179 lines (168 loc) · 5.27 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
# default
alias ls='ls --color=auto --time-style="+%d/%m/%y %H:%M"'
alias clr='clear'
alias dt='date "+%H:%M:%S %d.%m.%y"'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias igrep='grep -i --color=auto'
alias grp='grep'
alias diff='colordiff'
alias cl='tr -s " " | cut -d " " -f $1'
alias ll='ls -alh'
alias ltr='ls -lhatr'
alias src='source'
alias .='source'
alias la='ls -lA'
alias l='ls -l'
alias vim='nvim'
alias vi='vim'
alias vimdiff='vim -d'
alias vdiff=vimdiff
alias md='mkdir'
alias sudo='sudo '
alias sim='sudo vim'
alias sus='sudo -s'
alias sui='sudo -i'
alias rut='sui'
alias more='less'
alias rm='rm -v'
alias cp='cp -v'
alias mv='mv -v'
alias ..='cd ..'
alias dir='echo "\e[0;31mQUACK!\n\e[0mYou are kidding, right?"'
alias srcz='source ~/.zshrc'
alias sl='ls'
alias top='htop'
alias c='pygmentize -O style=monokai -f console256 -g'
# misc
alias clp=clippaste
alias clc=clipcopy
alias sncmail='systemctl start --user fetchmail.service'
alias wifion='nmcli r wifi on'
alias wifioff='nmcli r wifi off'
alias incognito='chromium --incognito'
alias pw='pass show -c $1'
alias pass=gopass
alias eo='xdg-open'
alias tc='tmux show-buffer | xclip -i -se p,c'
alias psa='ps axu'
alias psu='psa'
alias psx='psa'
alias epson_print='lp -d EPSON_WF-3620_Series -o media=A4 $1'
alias psac='psa|sort -nrk+3|head'
alias psam='psa|sort -nrk+4|head'
alias mnt='sudo mount'
alias mntall='mnt -a'
alias mntnas='mnt /mnt/nas'
alias setwp='feh --bg-scale --no-fehbg $1'
alias ddwn='wget $(xclip -o) -P /tmp/dwn/'
alias sandstorm="mp -nocache http://a.tumblr.com/tumblr_m3eat8besa1r3sgeio1.mp3"
alias mp='mplayer'
alias cam='mplayer tv://'
alias rmd='recordmydesktop --no-sound'
alias blset='brightnessctl s $1'
alias blget='brightnessctl | egrep -o "[0-9]+%" --color=never'
alias sc-failed='sudo systemctl --failed'
alias sc-jou='sudo journalctl -a'
alias sc-jouf='sc-jou -f'
alias sc-daemon-reload='sudo systemctl --system daemon-reload'
alias sc-joun='sc-jou -n'
alias re='reset'
alias du.='du -sh'
alias pubip='curl "ipinfo.io/ip"'
alias wttr='curl wttr.in'
alias flushc='sudo sync && echo 3 | sudo tee /proc/sys/vm/drop_caches > /dev/null && echo -ne "\033[32mCache purged.\n\007"'
alias uzic='mplayer -nocache http://stream03.uzic.ch:9010/'
alias redpill='mplayer -nocache https://radio.2f30.org:8443/red.mp3'
alias bluepill='mplayer -nocache https://radio.2f30.org:8443/blue.mp3'
alias gbfm='mplayer -nocache http://gbs03.de:7220/'
alias radio32='mplayer -nocache http://rstreaming.solnet.ch:8000/radio32'
alias radiox='mplayer -nocache https://mp3.radiox.ch/standard.mp3'
alias clock='tty-clock -s -c -C 6 -B'
alias :q='exit'
alias witch='which'
alias mu='neomutt'
alias mh='matterhorn'
alias wb='whalebrew'
alias pm='ponymix'
alias pmd='ponymix decrease 5'
alias pmu='ponymix increase 5'
alias sa='ssh-add'
alias s='ssh'
alias j='ssh jmp'
#tmux
alias txl='tmux list-sessions'
alias txk='tmux kill-session -t $1'
alias txn='tmux new-session'
alias txa='tmux attach-session -t $1'
# tools
alias docker='echo use podman'
alias pdm=podman
alias pdmc=podman-compose
alias nctl=nerdctl
alias tf=tofu
alias azc='podman run --rm -v /home/eye/.azure:/root/.azure microsoft/azure-cli az'
alias azcdev='podman run --rm -v /home/eye/.azure:/root/.azure azuresdk/azure-cli-python:dev az'
alias ocic='podman run --rm -v /home/eye/.oci:/root/.oci -v $(pwd):/tmp eyenx/oci'
alias k=kubectl
alias kc=kubectx
alias kn=kubens
alias ki=kubie
alias kic='kubie ctx'
alias kin='kubie ns'
alias he=helm
unalias ksd
alias vault=bao
alias vlt=vault
alias vk='vault kv'
alias vkl='vault kv list'
alias vkg='vault kv get'
alias vf='vl search '
alias vr='vault read'
alias vw='vault write'
alias drep='doing view report'
alias dtod='doing today'
alias dyes='doing yesterday'
alias dwee='doing view week'
alias dnow='doing view now'
alias ddone='doing view done'
alias ti='timedctl'
alias ttst='tt status'
alias ttrep='tt report -s "$(date +%F)"'
alias tttod='tt list records today'
alias tts='tt stop; tt start $@'
alias jo='joplin'
alias bl='bluetoothctl'
alias blon='bl power on'
alias bloff='bl power on'
alias caltod='khal list --format "{start-time} - {title} {location}"'
# kill aliases
alias ka='killall'
alias killf='killall firefox'
alias killp='killall pulseaudio'
#archlinux/pacman specific
alias pacman='yay'
alias pacups='pacman -Qu'
alias pacupg='pacman -Su'
alias paclocpretty="pacman -Qi | sed '/^Depends On/,/^Required By/{ s/^Required By.*$//; H; d }; /^Name/!d; /^Name/{ n;x;}'| sed '/^$/s//==================================================================================/'"
# autorandr
alias ar='autorandr'
alias arb='ar --force basement'
alias arh='ar --force home'
alias aro='ar --force office'
alias arm='ar --force mobile'
# nnn
alias nnn='nnn -e'
alias n='nnn'
# dotfiles git alias
alias dit='git --git-dir=$HOME/.dotfiles.git/ --work-tree=$HOME'
alias pit='git --git-dir=$HOME/.privdotfiles.git/ --work-tree=$HOME'
alias gitgraph="git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all"
alias ghpr='gh pr create'
alias ghprd='gh pr create -d'
alias pc=pre-commit
# shutdown aliases
alias reboot='sudo systemctl reboot'
alias shutdown='sudo systemctl poweroff'
alias fyyrobig='shutdown'