2021-12-08 12:57:13 +00:00
|
|
|
if [ -f ~/.zsh_local ]
|
2015-06-24 10:59:36 +00:00
|
|
|
then
|
2021-12-08 12:57:13 +00:00
|
|
|
source ~/.zsh_local
|
2015-06-24 10:59:36 +00:00
|
|
|
fi
|
2021-12-08 12:57:13 +00:00
|
|
|
#for non Arch systems
|
2016-07-14 11:03:13 +00:00
|
|
|
if [ -f ~/.zsh_grml ]
|
2015-06-24 10:59:36 +00:00
|
|
|
then
|
|
|
|
source ~/.zsh_grml
|
|
|
|
fi
|
|
|
|
source ~/.zsh_functions
|
|
|
|
export EDITOR=vim
|
2016-03-02 16:53:58 +00:00
|
|
|
export SYSTEMD_EDITOR=vim
|
2021-12-08 12:57:13 +00:00
|
|
|
export LESS=-R
|
|
|
|
export PATH=$PATH:~/bin:~/.local/bin
|
2015-06-21 20:27:36 +00:00
|
|
|
|
2022-10-31 23:28:21 +00:00
|
|
|
alias sudo='sudo '
|
2015-12-03 12:41:42 +00:00
|
|
|
alias clear-orphans='sudo pacman -Rns $(pacman -Qqdt)'
|
2018-11-29 09:42:33 +00:00
|
|
|
alias mount-chroot='sudo mount /mnt/tmpfs; sudo mkdir /mnt/tmpfs/chroot'
|
2014-12-04 22:33:16 +00:00
|
|
|
alias open='xdg-open'
|
2014-01-17 13:01:16 +00:00
|
|
|
#overwrite "default(?)" with my own function
|
|
|
|
alias cdt='cdtemp'
|
2014-07-17 10:02:58 +00:00
|
|
|
alias gst='git status'
|
2014-07-27 16:46:17 +00:00
|
|
|
alias gdf='git diff'
|
|
|
|
alias gdfs='git diff --staged'
|
2014-07-27 16:49:38 +00:00
|
|
|
alias gad='git add'
|
|
|
|
alias gcm='git commit'
|
2014-01-11 16:18:48 +00:00
|
|
|
alias resource='source ~/.zshrc'
|
2015-06-28 17:28:37 +00:00
|
|
|
alias poweroff='sudo poweroff'
|
|
|
|
alias reboot='sudo reboot'
|
2015-11-07 20:18:02 +00:00
|
|
|
alias n='ninja'
|
2021-12-08 12:33:57 +00:00
|
|
|
alias m='make -j$(nproc)'
|
2022-10-31 23:28:21 +00:00
|
|
|
alias sysupgrade='sudo pacman -Syu; auracle outdated'
|
2021-12-08 12:43:00 +00:00
|
|
|
alias v='vim'
|
2015-06-21 20:28:43 +00:00
|
|
|
alias ls='ls --color=auto'
|
2015-06-21 20:33:49 +00:00
|
|
|
|
2015-06-21 20:35:33 +00:00
|
|
|
if [ -f /usr/share/doc/pkgfile/command-not-found.zsh ]
|
|
|
|
then
|
|
|
|
source /usr/share/doc/pkgfile/command-not-found.zsh
|
|
|
|
fi
|
2015-06-21 20:33:49 +00:00
|
|
|
|
2015-06-28 17:27:30 +00:00
|
|
|
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
|
2022-10-31 23:28:21 +00:00
|
|
|
|
|
|
|
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(|/*)"
|