mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 16:41:43 +05:30
gitconfig added
This commit is contained in:
8
.aliases
8
.aliases
@@ -1,7 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Custom aliases
|
||||
|
||||
# Generic
|
||||
alias sb="source ~/.bashrc"
|
||||
alias bashreload="source ~/.bashrc"
|
||||
@@ -17,6 +15,7 @@ alias fgrep='fgrep --color=auto'
|
||||
alias usersearch="awk -F: '{print \"UserName: \" \$1 \", UserID: \" \$3 \", Home Dir: \" \$6 \", Shell Used: \" \$7}' /etc/passwd | grep"
|
||||
# alias code="codium"
|
||||
|
||||
|
||||
# History
|
||||
alias histsearch="history | grep"
|
||||
alias hs="histsearch"
|
||||
@@ -88,9 +87,6 @@ git_push_all_changes(){
|
||||
git add . && git commit -am "${1}" && git push
|
||||
}
|
||||
|
||||
# Add ~/.local/bin to PATH
|
||||
export PATH="${HOME}"/.local/bin:$PATH
|
||||
|
||||
|
||||
# For servers
|
||||
alias ngt="sudo nginx -t"
|
||||
@@ -182,4 +178,4 @@ f2b_ban_an_ip(){
|
||||
fi
|
||||
|
||||
sudo fail2ban-client set "${ban_jail}" banip "${ip_to_ban}" > /dev/null && echo "Ban successful"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user