1
Fork 0

Add ZSH configuration and aliases.

This commit is contained in:
Bauke 2022-05-11 22:54:31 +02:00
parent 01e4da4f78
commit 19a1d476e6
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
2 changed files with 29 additions and 0 deletions

14
.aliases.zsh Normal file
View File

@ -0,0 +1,14 @@
alias o="xdg-open"
alias trash="gio trash"
alias youtube-dl="yt-dlp"
alias dotfiles="git --git-dir $HOME/.dotfiles --work-tree $HOME"
alias gap="git add --patch"
alias gd="git diff"
alias gdc="git diff --cached"
alias gl="git log"
alias gls="git log --all --decorate --oneline --graph"
alias gs="git status"
alias clipboard-to-file="xclip -sel clip -o > $1"
alias file-to-clipboard="xclip -sel clip -i $1"

15
.zshrc Normal file
View File

@ -0,0 +1,15 @@
source "$HOME/.oh-my-zsh/oh-my-zsh.sh"
export EDITOR=nano
export LESS="-F -X $LESS"
export CARGO_BIN="$HOME/.cargo/bin"
export LOCAL_BIN="$HOME/.local/bin"
export PATH="$PATH:$CARGO_BIN"
export PATH="$PATH:$LOCAL_BIN"
source "$HOME/.zsh_aliases"
eval "$(register-python-argcomplete pipx)"
eval "$(starship init zsh)"