run stylua and add gpl and gb aliases
This commit is contained in:
@@ -1,36 +1,37 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
declare -A aliases=(
|
declare -A aliases=(
|
||||||
["sudo"]="sudo "
|
["sudo"]="sudo "
|
||||||
|
|
||||||
["ls"]="ls --color=auto"
|
["ls"]="ls --color=auto"
|
||||||
["l"]="ls"
|
["l"]="ls"
|
||||||
["lah"]="ls -lAh"
|
["lah"]="ls -lAh"
|
||||||
["la"]="ls -A"
|
["la"]="ls -A"
|
||||||
["ll"]="ls -l"
|
["ll"]="ls -l"
|
||||||
["ed"]="$EDITOR"
|
["ed"]="$EDITOR"
|
||||||
["c"]="clear"
|
["c"]="clear"
|
||||||
["t"]="tmux"
|
["t"]="tmux"
|
||||||
["pacman"]="pacman --color auto"
|
["pacman"]="pacman --color auto"
|
||||||
["yay"]="yay --color auto"
|
["yay"]="yay --color auto"
|
||||||
["q"]="exit"
|
["q"]="exit"
|
||||||
["tree"]="tree -C"
|
["tree"]="tree -C"
|
||||||
|
|
||||||
# Git
|
# Git
|
||||||
["g"]="git"
|
["g"]="git"
|
||||||
["ga"]="git add"
|
["ga"]="git add"
|
||||||
["gc"]="git commit"
|
["gc"]="git commit"
|
||||||
["gp"]="git push"
|
["gp"]="git push"
|
||||||
["gl"]="git log"
|
["gl"]="git log"
|
||||||
["gs"]="git status"
|
["gs"]="git status"
|
||||||
["gd"]="git diff"
|
["gd"]="git diff"
|
||||||
["gt"]="git tag"
|
["gt"]="git tag"
|
||||||
["gch"]="git checkout"
|
["gch"]="git checkout"
|
||||||
|
["gpl"]="git pull"
|
||||||
|
["gb"]="git branch"
|
||||||
)
|
)
|
||||||
|
|
||||||
for alias in ${!aliases[@]}
|
for alias in ${!aliases[@]}; do
|
||||||
do
|
cmd=${aliases[$alias]}
|
||||||
cmd=${aliases[$alias]}
|
alias "$alias"="$cmd"
|
||||||
alias "$alias"="$cmd"
|
complete -F _complete_alias "$alias"
|
||||||
complete -F _complete_alias "$alias"
|
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user