-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.aliasrc
123 lines (101 loc) · 3.53 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
122
123
#!/bin/sh
# vim: ft=sh
# download youtube video as mp3
alias yta="youtube-dl -x --audio-format 'mp3' --output '%(title)s.%(ext)s'"
# sometimes i forget the shell isn't vim
alias :q="exit"
# get to external storage devices easier
alias cdm='cd /run/media/$USER'
# sxiv-rifle for browsing images in directory after opening single file
# alias sxiv=sxiv-rifle
# i cant read
alias diff="diff --color=auto"
# Hastebin
# alias zhaste="env HASTE_SERVER=https://bin.zaxu.xyz/ haste"
alias zhaste="haste -d https://bin.zaxu.xyz"
alias less="less -R --mouse"
# ls
alias ls="eza --group-directories-first"
alias l="ls -l"
alias la="ls -a"
alias lla="la -la"
# git
alias g="git"
alias gst="g status"
alias ga="g add"
alias gau="ga -u"
alias gc="g commit"
alias gca="gc --amend"
alias gcapf="gca && gpf"
alias gcapff="gca && gpff"
alias gcae="gca --no-edit"
alias gcaepf="gcae && gpf"
alias gcaepff="gcae && gpff"
alias gcs="gs -S"
alias gcsa="gcs --amend"
alias gcmsg="gc -m"
alias gcsmsg="gc -S -m"
alias gp="g push"
alias gpf="gp --force-with-lease"
alias gpff="gp --force"
alias gpl="g pull"
alias gd="g diff"
alias gl="g log"
alias glo="gl --oneline"
alias glpo='gl --pretty="%C(Yellow)%h %C(auto)%ad (%C(Green)%cr%C(auto)) %C(Cyan)%an: %C(auto)%s" --date=short'
alias gcl="g clone"
alias gch="g checkout"
alias gchb="gch -b"
alias grb="g rebase"
alias yeet="ga -A && gcmsg 'yeet' && gp"
## dotfiles
alias dgit='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
alias dg="dgit"
alias dgst="dg status"
alias dga="dg add"
alias dgau="dga -u"
alias dgc="dg commit"
alias dgca="dgc --amend"
alias dgcapf="dgcae && gpf"
alias dgcapff="dge&& gpff"
alias dgcae="dgcae --no-edit"
alias dgcaepf="dgcae && gpf"
alias dgcaepff="dgcae && gpff"
alias dgcs="dg commit -S"
alias dgcsa="dgcs --amend"
alias dgcmsg="dgc -m"
alias dgcsmsg="dgcs -m"
alias dgp="dg push"
alias dgpf="dgp --force-with-lease"
alias dgpff="dgp --force"
alias dgpl="dg pull"
alias dgd="dg diff"
alias dgl="dg log"
alias dglo="dgl --oneline"
alias dglpo='dgl --pretty="%C(Yellow)%h %C(auto)%ad (%C(Green)%cr%C(auto)) %C(Cyan)%an: %C(auto)%s" --date=short'
alias dgch="dg checkout"
alias dgchb="dgch -b"
alias dgrb="dg rebase"
# django
alias djmkmigrate="python manage.py makemigrations --settings=backend.local_settings"
alias djmigrate="python manage.py migrate --settings=backend.local_settings"
alias djshell="python manage.py shell --settings=backend.local_settings"
# get to task
## latex assignment
alias cdlass="cd latex/ass"
alias elass="cdlass; vim ass.tex"
## info1910 task
alias cditask="cd info/current-task"
alias vim=nvim
alias v=vim
# alias tlmgr='/usr/share/texmf-dist/scripts/texlive/tlmgr.pl --usermode'
alias xdgo="xdg-open"
alias py="python3"
alias js="node"
alias pyvenv="python3 -m venv --system-site-packages"
alias pyv="pyvenv venv && source venv/bin/activate"
alias discord="discord --no-sandbox --disable-features=UseOzonePlatform --disable-gpu-driver-bug-workarounds --disable-gpu-driver-workarounds --disable-gpu-vsync --disable-reading-from-canvas --disable-software-rasterizer --enable-accelerated-2d-canvas --enable-accelerated-mjpeg-decode --enable-accelerated-video --enable-features=VaapiVideoEncoder,VaapiVideoDecoder,VaapiIgnoreDriverChecks,CanvasOopRasterization --enable-gpu-compositing --enable-gpu-rasterization --enable-native-gpu-memory-buffers --enable-oop-rasterization --enable-raw-draw --enable-zero-copy --ignore-gpu-blocklist --use-gl=egl"
alias neovide="neovide --multigrid"
alias f="fzf"
alias lg='sk --ansi -i -c '\''rg --color=always --line-number "{}"'\'''
alias img="kitty icat"