.dotfiles/zshrc
2021-12-08 13:50:52 +01:00

45 lines
1.1 KiB
Bash

# source all other zsh files
if [ -f ~/.zsh_environment ]
then
source ~/.zsh_environment
fi
#for accounts whithout root
if [ -f ~/.zsh_grml ]
then
source ~/.zsh_grml
fi
source ~/.zsh_functions
export EDITOR=vim
export SYSTEMD_EDITOR=vim
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 cmake='cmake -G Ninja'
alias sysupgrade='sudo pacman -Syu; auracle sync'
alias v='vim'
alias ls='ls --color=auto'
export PATH=$PATH:~/bin:~/.local/bin
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