feat: Add git config and shell aliases
This commit is contained in:
parent
50e1420ee4
commit
ccd14d8dd2
4 changed files with 105 additions and 3 deletions
20
zsh/.zshrc
20
zsh/.zshrc
|
|
@ -134,11 +134,25 @@ else
|
|||
alias wlc="wl-copy"
|
||||
alias wlp="wl-paste"
|
||||
fi
|
||||
alias pilot="gh copilot"
|
||||
alias ps="gh copilot suggest"
|
||||
alias pe="gh copilot explain"
|
||||
alias fzfd="fd --type d --hidden --follow --exclude .git | fzf"
|
||||
|
||||
alias gs="clear -x; git status -sb; echo ""; git --no-pager log --oneline -4"
|
||||
alias gsu="git submodule update --init --recursive --force"
|
||||
alias gc="git commit --verbose --template=$HOME/.config/git/commit-template.txt"
|
||||
alias gp="git push"
|
||||
alias gu="git pull"
|
||||
alias gsw="git switch"
|
||||
alias gswc="git switch --create"
|
||||
alias gb="git branch"
|
||||
alias gr="git restore --staged"
|
||||
alias gre="git restore"
|
||||
alias ga="git add"
|
||||
alias gap="git add --patch"
|
||||
alias gi="git init"
|
||||
alias gcl="git clone"
|
||||
alias gd="git diff --output-indicator-new=' ' --output-indicator-old=' '"
|
||||
alias gl="git log --all --graph --pretty=format:'%C(magenta)%h %C(white) %an %ar%C(auto) %D%n%s%n'"
|
||||
|
||||
# Alias functions
|
||||
vif() {
|
||||
nvim "$(fzf)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue