-
Notifications
You must be signed in to change notification settings - Fork 0
/
.profile
194 lines (162 loc) · 4.92 KB
/
.profile
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
# Core
alias snvim="sudo -E nvim"
#Arch Linux Aliases
alias pacsu="sudo pacman -Syu --noconfirm && yay -Syu"
alias pacsuw='sudo pacman -Syu --noconfirm --config /etc/pacman-warp.conf && yay -Syu --noconfirm --config /etc/pacman-warp.conf'
alias pacin="sudo pacman -S --noconfirm"
alias yacin="yay -S --noconfirm"
alias pacre="sudo pacman -Rns"
alias yacre="yay -Rns"
alias paclean='sudo pacman -Qdtq | sudo pacman -Rns - ; sudo fstrim -av'
alias pacache="sudo pacman -Scc --noconfirm && yay -Scc --noconfirm"
#AstroNvim Aliases
alias avzsh="nvim ~/.dotfiles/.zshrc"
alias avdots="nvim ~/.dotfiles/"
alias avbsh="nvim ~/.dotfiles/.bashrc"
alias avpac="sudo vim /etc/pacman.conf"
alias avpacw="sudo vim /etc/pacman-warp.conf"
alias avbsp="nvim ~/.config/bspwm/bspwmrc"
alias avhyp="nvim ~/.dotfiles/dot-config/hypr/"
alias avags="nvim ~/.dotfiles/dot-config/ags/"
alias avsxh="nvim ~/.config/sxhkd/sxhkdrc"
alias avnvim="nvim ~/.dotfiles/dot-config/nvim/"
alias avpic="sudo nvim ~/.config/picom/picom.conf"
#ProtonVPN
alias pvpn="protonvpn-cli c --cc US -p udp"
alias pvpc="protonvpn-cli c"
alias pvpd="protonvpn-cli d"
#NMCLI
alias nmli="nmcli device wifi list"
alias nmco="nmcli device wifi connect"
alias nmcomp='nmcli device wifi connect "Mon Palais"'
#OTHERS
alias getw="xprop | grep WM_CLASS"
alias mkex="chmod +x"
alias ythd="yt-dlp -f 'bestvideo[height<=720]+bestaudio/best[height<=720]' -o '~/Downloads/Video/%(title)s.%(ext)s'"
alias ytfhd="yt-dlp -f 'bestvideo[height<=1080]+bestaudio/best[height<=1080]' -o '~/Downloads/Video/%(title)s.%(ext)s'"
alias ytmax="yt-dlp -f 'bestvideo+bestaudio' -o '~/Downloads/Video/%(title)s.%(ext)s'"
alias cldl="scdl --onlymp3 --path Downloads/sdcl -l"
alias nfetch="clear && neofetch"
alias ls="eza --color=always --long --git --no-filesize --icons=always --no-time --no-user --no-permissions"
alias lsa="eza -a --color=always --long --git --no-filesize --icons=always --no-time --no-user --no-permissions"
alias ll="/usr/bin/ls -al"
alias cdar="cd ~/arch_progs/"
alias codedots="code ~/.dotfiles"
alias codeags="code ~/.dotfiles/dot-config/ags/"
alias zdots="cd ~/.dotfiles/"
alias curl='noglob curl'
# Node & Bun
alias ptd="pnpm tauri dev"
alias prd="pnpm run dev"
alias btd="bun tauri dev"
alias brd="bun run dev"
# Ripgrep
alias rgfs='rg --fixed-strings --'
# Git Aliases
# Clone
alias gc="git clone"
# Status
alias gs="git status"
alias gss="git status -s"
# Add
alias ga="git add"
alias gaa="git add --all"
# Commit
alias gcm="git commit -m"
# Checkout and Switch
alias gco="git checkout"
alias gcb="git checkout -b"
alias gsw="git switch"
alias gswc="git switch -c"
alias gswm='git switch $(git_main_branch)'
alias gswd='git switch $(git_develop_branch)'
# Branch
alias gbr="git branch"
alias gbd="git branch -d"
# Bisect
alias gbs="git bisect"
alias gbss="git bisect start"
alias gbc="git bisect continue"
alias gbg="git bisect good"
alias gbb="git bisect bad"
alias gbs="git bisect reset"
# Log
alias glog="git log --oneline --decorate --graph --all"
# Pull
alias gpl="git pull"
alias gplr="git pull --rebase"
alias gplm="git pull origin main"
alias ggpull='git pull origin "$(git_current_branch)"'
# Push
alias gp="git push"
alias gpf!="git push --force"
alias gpsm="git push origin main"
alias ggpush='git push origin "$(git_current_branch)"'
# Fetch
alias gf="git fetch"
alias gfa="git fetch --all --prune"
# Restore
alias gr="git restore"
alias grs="git restore"
# Merge
alias gm="git merge"
alias gmom='git merge origin/$(git_main_branch)'
# Stash
alias gst="git stash"
alias gsta="git stash apply"
alias gstd="git stash drop"
alias gstl="git stash list"
alias gstp="git stash pop"
# Tag
alias gts="git tag -s"
alias gtv="git tag | sort -V"
function git_current_branch() {
git branch --show-current
}
function gd() {
git diff --name-only --relative --diff-filter=d $@ | xargs bat --diff
}
function eclean() {
echo "Are you sure you want to clean the cache and remove old packages?"
echo "Type 'yes' to continue: "
read yn
if [ "$yn" = "yes" ]; then
~/.dotfiles/scripts/eclean.lua
else
echo "Aborted."
fi
}
#.Net Aliases
alias dn='dotnet new'
alias dr='dotnet run'
alias dt='dotnet test'
alias dw='dotnet watch'
alias dwr='dotnet watch run'
alias dwt='dotnet watch test'
alias ds='dotnet sln'
alias da='dotnet add'
alias dp='dotnet pack'
alias dng='dotnet nuget'
alias db='dotnet build'
# Make Aliases
alias mkr='make run'
alias mkp='make prune'
alias mkc='make create'
# Rust Aliases
alias cg='cargo'
alias cgc='cargo check'
alias cgr='cargo run'
alias cgb='cargo build'
alias cgbr='cargo build --release'
# Angular Aliases
alias ngs='ng serve'
alias ngso='ng serve --open'
alias nggc='ng generate component'
# >>> coursier install directory >>>
export PATH="$PATH:$HOME/.local/share/coursier/bin"
# export PATH="$PATH:$HOME/go/bin/"
export PATH=$PATH:$(go env GOPATH)/bin
# export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
# export LD_LIBRARY_PATH=/usr/local/lib
# export LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH
export GPG_TTY=$(tty)