-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaliases
More file actions
60 lines (49 loc) · 1.3 KB
/
aliases
File metadata and controls
60 lines (49 loc) · 1.3 KB
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
# Shell Aliases - Kunal Kumar
# Rename Aliases
if [ "$(command -v bat)" ]; then
alias cat="bat"
fi
if [ "$(command -v zoxide)" ]; then
alias cd="z"
alias cdi="zi"
fi
if [ "$(command -v speedtest-cli)" ]; then
alias nettest="speedtest-cli"
fi
if [ "$(command -v theme.sh)" ]; then
alias set-light="theme.sh google-light"
alias set-dark="theme.sh duotone-dark"
fi
if [ "$(command -v glow)" ]; then
alias glow="glow -t"
fi
if [ "$(command -v trash-put)" ]; then
if [ "$(command -v rmtrash)" ]; then
alias rm="rmtrash"
else
alias rm="echo 'Use trash-cli idiot';"
fi
fi
if [ "$(command -v zellij)" ]; then
alias ze="zellij edit"
alias zr="zellij run --"
fi
# Live Server Aliases
alias testingtunnel="live-server --port=5000 && ngrok start testing"
alias demotunnel="live-server --port=8000 && ngrok start demo"
alias fontreload="fc-cache -f -v"
# Git Aliases
alias gc="git commit"
alias gcm="git commit -m"
alias ga="git add ."
alias gaf="git add"
# Zoxide Aliases
alias z=__zoxide_z
alias zi=__zoxide_zi
# Terminal Video Player
if [ "$(command -v mplayer)" ]; then
alias ascii_play="sudo mplayer -noautosub -really-quiet -monitorpixelaspect 0.5 -vo aa:driver=curses:contrast=45"
fi
if [ "$(command -v mpv)" ]; then
alias color_play="mpv -vo tct"
fi