dotfiles/.zshrc

48 lines
1.0 KiB
Bash
Raw Normal View History

2020-03-29 18:14:02 +00:00
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/sophon/.oh-my-zsh"
2020-03-30 09:45:26 +00:00
#Theme to load
ZSH_THEME="xiong-chiamiov"
#duelj, afowler, random
2020-03-29 18:14:02 +00:00
2020-03-30 09:45:26 +00:00
#Plugins
2020-03-30 09:32:42 +00:00
plugins=(git zsh-autosuggestions z zsh-syntax-highlighting)
2020-03-29 18:14:02 +00:00
source $ZSH/oh-my-zsh.sh
# User configuration
2020-03-30 09:45:26 +00:00
#Aliases
#Email aliases
alias mail="mbsync -a ; neomutt" #Automatically download new emails and open neomutt
2020-03-30 09:32:42 +00:00
alias email="mbsync -a ; neomutt"
alias mutt="mbsync -a ; neomutt"
alias download_mail="mbsync -a"
2020-03-30 09:45:26 +00:00
#Variable exports
2020-03-29 18:14:02 +00:00
export RTV_BROWSER=w3m
export VISUAL=vim
2020-03-29 20:34:28 +00:00
export EDITOR=vim
2020-03-29 18:14:02 +00:00
export TERMINAL=termite
2020-03-30 09:45:26 +00:00
#Keybindings for autosuggest
2020-03-30 09:32:42 +00:00
bindkey '^ ' autosuggest-accept
bindkey '^\n' autosuggest-execute
2020-03-29 18:14:02 +00:00
PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH"
#cdn + number will move to the xth parent directory (cdn 2 = cd ../..)
function cdn() { for i in `seq $1`; do cd ..; done; }
#Prevent nested ranger instances
ranger() {
if [ -z "$RANGER_LEVEL" ]; then
/usr/bin/ranger "$@"
else
exit
fi
}
#For Pywal
(cat ~/.cache/wal/sequences &)