mirror of
https://github.com/jessebot/dot_files.git
synced 2025-10-01 01:48:43 +00:00
add alias for gi tpull, gi pull, and gi tpush typos :)
This commit is contained in:
parent
ac0f64f16f
commit
eeda696341
1 changed files with 12 additions and 2 deletions
|
@ -119,14 +119,24 @@ alias ga='git add .'
|
|||
alias gph='git push && git push --tags'
|
||||
alias gp='git pull && git log -1'
|
||||
|
||||
# glab is gitlab's cli, but I always type gl by accident
|
||||
alias gl='glab'
|
||||
|
||||
# typos
|
||||
alias gitcommit='git commit'
|
||||
alias gitadd='git add'
|
||||
alias gti='git'
|
||||
alias gtt='git'
|
||||
|
||||
# glab is gitlab's cli, but I always type gl by accident
|
||||
alias gl='glab'
|
||||
# Function to attempt to fix gi typos
|
||||
function gi {
|
||||
if [[ $1 = "tpull" || $1 = "pull" ]]; then
|
||||
git pull
|
||||
elif [ $1 = "tpush" ]; then
|
||||
git push
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
# -------------------------------------------------------------------------- #
|
||||
# -------------------------- CUSTOM FUNCTIONS ----------------------------- #
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue