-
Notifications
You must be signed in to change notification settings - Fork 2
/
.aliasrc
121 lines (114 loc) · 2.67 KB
/
.aliasrc
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
#!/bin/sh
# navigation aliases
alias \
..="cd .." \
...="cd ../.." \
....="cd ../../.." \
.....="cd ../../../.." \
# terraform aliases
alias \
tff="terraform fmt" \
tfi="terraform init" \
tfa="terraform apply" \
tfd="terraform destroy" \
tfr="terraform refresh" \
tfp="terraform plan" \
# tmux aliases
alias \
tls="tmux ls" \
tks="tmux kill-server" \
tds="tmux-db-session" \
ta="tmux a" \
td="tmux detach" \
tx="tmux-sessionizer" \
tns="tmux new -s" \
trn="tmux rename-session -t" \
# handy scripts
alias \
ew="edit-tmux-workspace" \
mp="monitor-process" \
vr="vim-recent" \
dbp="db-port" \
dce="db-container-env" \
dbv="db-container-volume" \
ff="find-files" \
fvi="find-files" \
frm="fast-remove" \
lg="live-grep" \
drt="dirty" \
gs="git-status" \
gf="git-files" \
ga="git-add" \
gu="git-unstage-file" \
gr="git-restore" \
gco="git-checkout" \
guc="git-unpushed-commits" \
gwt="git-worktree-tool" \
guf="git-untracked-files" \
gmf="git-modified-files" \
grd="git-restore-deleted" \
grm="git-restore-modified" \
gsa="git-stash-apply" \
gulc="git-undo-last-commit" \
gai="git-add-interactive" \
grl="git-reflog" \
glf="git-log-file" \
sws="switch_shell" \
# version control aliases
alias \
glo="git log --format=\"format:%C(magenta)%h%C(green)%d %C(reset)%s %C(cyan)(%cr) %C(blue)%an\"" \
gb="git branch" \
gcm="git commit -m" \
gp="git push" \
gpf="git push -f" \
gdf="git diff" \
gsu="git stash -u" \
gsp="git stash pop" \
gsc="git stash clear" \
gsl="git stash list" \
gss="git stash show" \
gca="git commit --amend" \
gcan="git commit --amend --no-edit" \
gdt="git difftool -y" \
gwa="git worktree add" \
gcob="git checkout -b" \
lzg="lazygit" \
# additional aliases
alias \
e="$EDITOR" \
conf="cd ~/.config" \
cr="cargo run" \
rsc="rustc" \
dbe="db-env" \
ls='eza --icons=always --no-user --no-time --no-filesize' \
lsn='command ls --color=always' \
sv='source ./venv/bin/activate' \
cv='python3 -m venv venv' \
pir='pip install -r requirements.txt' \
nn='nano' \
v='nvim' \
vi='nvim' \
vii='nvim' \
iv='nvim' \
ivi='nvim' \
ivii='nvim' \
nv='nvim' \
nvi='nvim' \
tree='tree --gitignore' \
dev="cd ~/.development" \
dotfiles="cd ~/.dotfiles" \
python='python3' \
mem="neofetch memory" \
cpu="neofetch cpu --cpu_temp" \
disk="neofetch disk" \
uptime="neofetch uptime" \
ndoe="node" \
# personal aliases
alias \
ncp="nvim-cp" \
nwk="nvim-work" \
suspend="systemctl suspend" \
restart="systemctl reboot" \
i3lock="i3lock -c 1A212E" \
reckey="screenkey -s small -t 0.25 --opacity 0.5 -p fixed -g 24%x7%-2%-10% &" \
sb="setbg" \