.dotfiles/zshrc
2022-11-01 00:28:21 +01:00

56 lines
1.4 KiB
Bash

if [ -f ~/.zsh_local ]
then
source ~/.zsh_local
fi
#for non Arch systems
if [ -f ~/.zsh_grml ]
then
source ~/.zsh_grml
fi
source ~/.zsh_functions
export EDITOR=vim
export SYSTEMD_EDITOR=vim
export LESS=-R
export PATH=$PATH:~/bin:~/.local/bin
alias sudo='sudo '
alias clear-orphans='sudo pacman -Rns $(pacman -Qqdt)'
alias mount-chroot='sudo mount /mnt/tmpfs; sudo mkdir /mnt/tmpfs/chroot'
alias open='xdg-open'
#overwrite "default(?)" with my own function
alias cdt='cdtemp'
alias gst='git status'
alias gdf='git diff'
alias gdfs='git diff --staged'
alias gad='git add'
alias gcm='git commit'
alias resource='source ~/.zshrc'
alias poweroff='sudo poweroff'
alias reboot='sudo reboot'
alias n='ninja'
alias m='make -j$(nproc)'
alias sysupgrade='sudo pacman -Syu; auracle outdated'
alias v='vim'
alias ls='ls --color=auto'
if [ -f /usr/share/doc/pkgfile/command-not-found.zsh ]
then
source /usr/share/doc/pkgfile/command-not-found.zsh
fi
if [ -f /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]
then
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
fi
if command -v direnv > /dev/null
then
eval "$(direnv hook zsh)"
fi
export HISTSIZE=1000000
export SAVEHIST=$HISTSIZE
# do not include other filesystems, otherwise startup takes forever in the bad case
zstyle ':grml:chpwd:dirstack' exclude "/mnt(|/*)"