35 lines
696 B
Plaintext
35 lines
696 B
Plaintext
alias_list=(
|
|
ll='ls -alF'
|
|
grep='grep --color=auto'
|
|
vi='nvim'
|
|
lpg='cd ~/git/lucidpoint'
|
|
ppg='cd ~/git/personal'
|
|
|
|
# GIT
|
|
gaa='git add --all'
|
|
gcm='git commit --all --message'
|
|
glo='git log --oneline --decorate --graph --all'
|
|
gl='git pull'
|
|
gp='git push'
|
|
gpd='git push --dry-run'
|
|
gpv='git push --verbose'
|
|
grb='git rebase'
|
|
grv='git remote --verbose'
|
|
gs='git show --pretty=short'
|
|
gst='git status --short'
|
|
)
|
|
gc() {
|
|
git add --all
|
|
if [ -n "$1" ]
|
|
then
|
|
git commit --all --message "$1"
|
|
else
|
|
git commit -m update
|
|
fi
|
|
git push --verbose
|
|
}
|
|
|
|
for alias_def in "${alias_list[@]}"; do
|
|
alias $alias_def
|
|
done
|