mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
Updates to alias
This commit is contained in:
12
.aliases
12
.aliases
@@ -27,7 +27,7 @@ alias untar='tar -zxvf '
|
|||||||
# Directories and Directory listings
|
# Directories and Directory listings
|
||||||
alias ~="cd ~"
|
alias ~="cd ~"
|
||||||
alias ..="cd .."
|
alias ..="cd .."
|
||||||
alias ..3='cd ../../../' # Go back 3 directory levels
|
alias ...='cd ../../../' # Go back 3 directory levels
|
||||||
alias ..4='cd ../../../../' # Go back 4 directory levels
|
alias ..4='cd ../../../../' # Go back 4 directory levels
|
||||||
alias ..5='cd ../../../../../' # Go back 5 directory levels
|
alias ..5='cd ../../../../../' # Go back 5 directory levels
|
||||||
alias ..6='cd ../../../../../../' # Go back 6 directory levels
|
alias ..6='cd ../../../../../../' # Go back 6 directory levels
|
||||||
@@ -83,11 +83,14 @@ alias remove="sudo apt-get remove "
|
|||||||
|
|
||||||
# Git
|
# Git
|
||||||
# To use this - Ensure all git server SSH are in ~/.ssh
|
# To use this - Ensure all git server SSH are in ~/.ssh
|
||||||
alias git_signin='(for i in ~/.ssh/{*github*,*bitbucket*,*gitea*,*gitlab*,*gog*}; do ssh-add -k $i; done; ) && (echo; echo Identities added successfully)'
|
alias git_signin='(for i in ~/.ssh/{*github*,*bitbucket*,*gitea*,*gitlab*}; do ssh-add -k $i; done; ) && (echo; echo Identities added successfully)'
|
||||||
git_push_all_changes(){
|
git_push_all_changes(){
|
||||||
git add . && git stage . && git commit -m "${1}" && git push
|
git commit -am "${1}" && git push
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Add ~/.local/bin to PATH
|
||||||
|
export PATH="${HOME}"/.local/bin:$PATH
|
||||||
|
|
||||||
|
|
||||||
# For servers
|
# For servers
|
||||||
alias ngt="sudo nginx -t"
|
alias ngt="sudo nginx -t"
|
||||||
@@ -180,6 +183,3 @@ f2b_ban_an_ip(){
|
|||||||
|
|
||||||
sudo fail2ban-client set "${ban_jail}" banip "${ip_to_ban}" > /dev/null && echo "Ban successful"
|
sudo fail2ban-client set "${ban_jail}" banip "${ip_to_ban}" > /dev/null && echo "Ban successful"
|
||||||
}
|
}
|
||||||
|
|
||||||
## Add ~/.local/bin to PATH
|
|
||||||
export PATH="${HOME}"/.local/bin:$PATH
|
|
||||||
@@ -83,6 +83,7 @@
|
|||||||
"Aiginia",
|
"Aiginia",
|
||||||
"BBSR",
|
"BBSR",
|
||||||
"Bhubaneswar",
|
"Bhubaneswar",
|
||||||
|
"Destructured",
|
||||||
"GOPATH",
|
"GOPATH",
|
||||||
"Jython",
|
"Jython",
|
||||||
"Kumar",
|
"Kumar",
|
||||||
@@ -98,8 +99,10 @@
|
|||||||
"VIMP",
|
"VIMP",
|
||||||
"VVIMP",
|
"VVIMP",
|
||||||
"VVVIMP",
|
"VVVIMP",
|
||||||
|
"Vec",
|
||||||
"arity",
|
"arity",
|
||||||
"atleast",
|
"atleast",
|
||||||
|
"destructure",
|
||||||
"elif",
|
"elif",
|
||||||
"mkdir",
|
"mkdir",
|
||||||
"pratiktri",
|
"pratiktri",
|
||||||
|
|||||||
Reference in New Issue
Block a user