dotfiles/.zshrc
Irrlicht 310859ae7e
[zsh] Additionnal aliases for git command
New aliases : git blame, git bisect
2026-10-21 09:41:39 +02:00

71 lines
1.5 KiB
Shell

# PS1="%M@%m%# "
PS1="[%n@%M]%# "
export PATH=$PATH:"$HOME/bin"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="jonathan"
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
HIST_STAMPS="%Y/%m/%d %H:%M:%S"
SAVEHIST=1000
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
plugins=(git vi-mode pass tmux)
## Plugins configuration
ZSH_TMUX_AUTOSTART=true
# Following option doesn't work as expected
#ZSH_TMUX_AUTOSTART_ONCE=true
ZSH_TMUX_AUTOQUIT=false
ZSH_TMUX_AUTOCONNECT=false
source $ZSH/oh-my-zsh.sh
export EDITOR=/usr/bin/vim
source $HOME/.zsh_variable
# Misc aliases
alias ffprobe="ffprobe -hide_banner"
alias ffmpeg="ffmpeg -hide_banner"
alias entry="entry -e -n yesterday"
# Git aliases
alias gadd="git add"
alias gbla="git blame"
alias gbis="git bisect"
alias gbra="git branch"
alias gche="git checkout"
alias gcom="git commit"
alias gclo="git clone"
alias gdif="git diff"
alias gfet="git fetch"
alias glog="git log"
alias gmov="git mv"
alias gpul="git pull"
alias gpus="git push"
alias greb="git rebase"
alias grem="git remote"
alias gres="git reset"
alias gash="git stash"
alias gsta="git status"
alias gswi="git switch"
alias gtag="git tag"
# Systemd
alias dctl="systemctl"
# Tmux alias
alias txa="tmux a"