dotfiles/.config/zsh/.zshrc

38 lines
844 B
Bash
Raw Normal View History

2021-03-28 17:15:49 +02:00
# Use powerline
USE_POWERLINE="true"
SAVEHIST=200
HISTFILE=~/.zsh_history
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
cbonsai -p --seed $RANDOM -m "Welcome back"
sleep 2
startx &> /dev/null
fi
if [ -d "$HOME/bin" ] ; then
export PATH="$HOME/bin:$PATH"
2021-04-11 17:43:21 +02:00
chmod u+x $HOME/bin/*
2021-03-28 17:15:49 +02:00
fi
2021-04-20 09:31:03 +02:00
if [ -d "$HOME/.emacs.d/bin" ] ; then
export PATH="$HOME/.emacs.d/bin:$PATH"
fi
2021-03-28 17:15:49 +02:00
autoload -Uz compinit
compinit
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source /usr/share/doc/pkgfile/command-not-found.zsh
alias ls='exa -lh'
2021-04-04 14:08:36 +02:00
alias cat='bat'
2021-03-28 17:15:49 +02:00
alias diff='diff --color=auto'
alias grep='grep --color=auto'
alias ip='ip -color=auto'
2021-04-19 17:09:31 +02:00
alias emacs='emacs -nw'
2021-03-28 17:15:49 +02:00
2021-05-05 20:33:12 +02:00
eval "$(zoxide init zsh)"
2021-03-28 17:15:49 +02:00
eval "$(LC_ALL="en_US.UTF-8" starship init zsh)"