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
|
2020-04-01 17:46:53 +00:00
|
|
|
ZSH_THEME="lukerandall"
|
|
|
|
#duelj, afowler, random, xiong-chiamiov, lukerandall, gnzh, clean
|
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
|
|
|
|
|
2020-03-31 14:43:17 +00:00
|
|
|
#User configuration
|
|
|
|
#
|
2020-03-30 09:45:26 +00:00
|
|
|
#Aliases
|
2020-03-31 14:43:17 +00:00
|
|
|
#
|
2020-03-30 09:45:26 +00:00
|
|
|
#Email aliases
|
2020-03-31 14:43:17 +00:00
|
|
|
#
|
2020-03-30 09:45:26 +00:00
|
|
|
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-04-19 09:30:18 +00:00
|
|
|
alias vifm="vifmrun"
|
2020-03-30 09:32:42 +00:00
|
|
|
|
2020-04-01 18:49:14 +00:00
|
|
|
#Command Aliases
|
|
|
|
#
|
|
|
|
alias l="ls -sh"
|
|
|
|
alias la="ls -ash"
|
2020-05-29 17:09:18 +00:00
|
|
|
alias vifm="vifmrun"
|
2020-04-01 18:49:14 +00:00
|
|
|
|
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-31 19:03:49 +00:00
|
|
|
#Keybindings
|
|
|
|
#
|
2020-03-30 09:45:26 +00:00
|
|
|
#Keybindings for autosuggest
|
2020-03-31 19:03:49 +00:00
|
|
|
bindkey '^ ' autosuggest-accept #Ctrl + Space
|
2020-03-31 14:43:17 +00:00
|
|
|
bindkey '^\n' autosuggest-execute #Doesn't seem work, Ctrl+<CR>
|
2020-03-30 09:32:42 +00:00
|
|
|
|
2020-03-31 19:03:49 +00:00
|
|
|
#Keybindings for searching through the history
|
|
|
|
bindkey '^[j' history-search-forward #Alt + j
|
|
|
|
bindkey '^[k' history-search-backward #Alt + k
|
|
|
|
|
2020-03-29 18:14:02 +00:00
|
|
|
#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 &)
|
2020-03-31 19:03:49 +00:00
|
|
|
source ~/.cache/wal/colors-tty.sh
|
2020-03-30 09:47:53 +00:00
|
|
|
|
|
|
|
#Path changes
|
|
|
|
PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH"
|
2020-05-29 17:09:18 +00:00
|
|
|
PATH="/usr/local/inferno/Linux/386/bin:$PATH"
|
2020-04-03 11:45:22 +00:00
|
|
|
|
2020-04-03 12:52:44 +00:00
|
|
|
#Searching through history with dmenu
|
2020-04-03 11:45:22 +00:00
|
|
|
alias history='cat $HISTFILE | sed -e "s/^:[ \t]*[0-9]*:[0-9]*;//g" | dmenu "$@" -l 7 -p "Command:" | ${SHELL:-"/bin/zsh"}'
|