gitconfig added

This commit is contained in:
Pratik Tripathy
2020-10-18 02:28:30 +05:30
parent d94650edec
commit 13bee26106
5 changed files with 46 additions and 80 deletions

View File

@@ -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"
}
}