2014-11-27 20:52:06 +01:00
|
|
|
|
|
|
|
# Lines configured by zsh-newuser-install
|
2016-03-16 23:54:53 +01:00
|
|
|
HISTFILE=~/.local/share/zsh/histfile
|
2014-11-27 20:52:06 +01:00
|
|
|
HISTSIZE=1000
|
|
|
|
SAVEHIST=1000
|
|
|
|
setopt appendhistory
|
|
|
|
unsetopt beep
|
|
|
|
bindkey -v
|
|
|
|
# End of lines configured by zsh-newuser-install
|
|
|
|
|
|
|
|
# The following lines were added by compinstall
|
|
|
|
zstyle :compinstall filename '/home/felix/.zshrc'
|
|
|
|
|
|
|
|
autoload -Uz compinit
|
|
|
|
compinit
|
|
|
|
# End of lines added by compinstall
|
|
|
|
|
|
|
|
# Get ourselves a nice prompt.
|
|
|
|
git_status() {
|
|
|
|
if git status 2>/dev/null 1>&2; then
|
|
|
|
git branch | grep \*
|
|
|
|
git status --porcelain | cat <(echo OK) - | sed 's/\(..\).*/(\1)/' | tail -1
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
autoload -U colors && colors
|
2015-12-30 00:52:38 +01:00
|
|
|
PS1="[%*] %{$fg[red]%}%n@%m%{$reset_color%} %{$fg[green]%}%~%{$reset_color%} "'$(git_status | xargs echo)'"
|
2014-11-27 20:52:06 +01:00
|
|
|
%(?.$.%%) "; setopt promptsubst
|
|
|
|
|
2016-03-25 09:50:03 +01:00
|
|
|
# XDG dirs
|
|
|
|
export XDG_DATA_HOME="$HOME/.local/share"
|
|
|
|
export XDG_CONFIG_HOME="$HOME/.config"
|
|
|
|
export XDG_CACHE_HOME="$HOME/.cache"
|
|
|
|
export XDG_RUNTIME_DIR="/tmp/runtime-noctua"
|
|
|
|
mkdir -p "/tmp/runtime-noctua"
|
|
|
|
chmod 0700 /tmp/runtime-noctua
|
|
|
|
|
2014-11-27 20:52:06 +01:00
|
|
|
# Color ls
|
|
|
|
alias ls="ls --color=auto"
|
|
|
|
|
|
|
|
# Local scripts
|
2016-03-18 19:37:12 +01:00
|
|
|
export PATH="$HOME/.local/bin":"$PATH"
|
2016-03-16 23:54:53 +01:00
|
|
|
export PATH="$HOME/.cabal/bin":"$PATH"
|
2016-03-18 19:37:12 +01:00
|
|
|
export PATH="$(ruby -rubygems -e "puts Gem.user_dir")/bin":"$PATH"
|
|
|
|
export GEM_HOME="$(ruby -e 'puts Gem.user_dir')"
|
2014-11-27 20:52:06 +01:00
|
|
|
|
|
|
|
# For vim
|
2015-12-30 01:30:14 +01:00
|
|
|
export EDITOR="nvim"
|
|
|
|
#stty -ixon # turn of <C-s> for vimshell
|
2016-03-16 23:54:53 +01:00
|
|
|
alias vim="nvim"
|
2015-12-30 01:30:14 +01:00
|
|
|
alias vi="nvim"
|
|
|
|
alias nano="nvim"
|
2014-11-27 20:52:06 +01:00
|
|
|
|
2015-04-14 01:15:33 +02:00
|
|
|
# Don't type that config location al the time.
|
|
|
|
alias ncmpcpp="ncmpcpp -c ~/.config/ncmpcpp/config"
|
2016-03-16 23:39:37 +01:00
|
|
|
alias mbsync="mbsync -c ~/.config/mbsync/config"
|
2015-05-04 20:23:46 +02:00
|
|
|
|
|
|
|
# Base16 Shell
|
2015-12-30 00:52:38 +01:00
|
|
|
BASE16_SHELL="$HOME/.config/base16-shell/base16-greenscreen.dark.sh"
|
|
|
|
|
2015-05-04 20:23:46 +02:00
|
|
|
BASE16_SHELL="$HOME/.config/base16-shell/base16-3024.dark.sh"
|
2015-12-30 00:52:38 +01:00
|
|
|
BASE16_SHELL="$HOME/.config/base16-shell/base16-solarized.dark.sh"
|
|
|
|
BASE16_SHELL="$HOME/.config/base16-shell/base16-shapeshifter.dark.sh"
|
|
|
|
BASE16_SHELL="$HOME/.config/base16-shell/base16-railscasts.dark.sh"
|
|
|
|
BASE16_SHELL="$HOME/.config/base16-shell/base16-monokai.dark.sh"
|
|
|
|
BASE16_SHELL="$HOME/.config/base16-shell/base16-marrakesh.dark.sh"
|
|
|
|
BASE16_SHELL="$HOME/.config/base16-shell/base16-harmonic16.dark.sh"
|
|
|
|
BASE16_SHELL="$HOME/.config/base16-shell/base16-default.dark.sh"
|
|
|
|
BASE16_SHELL="$HOME/.config/base16-shell/base16-colors.dark.sh"
|
|
|
|
BASE16_SHELL="$HOME/.config/base16-shell/base16-chalk.dark.sh"
|
|
|
|
BASE16_SHELL="$HOME/.config/base16-shell/base16-atelierseaside.dark.sh"
|
|
|
|
BASE16_SHELL="$HOME/.config/base16-shell/base16-atelierlakeside.dark.sh"
|
|
|
|
BASE16_SHELL="$HOME/.config/base16-shell/base16-atelierforest.dark.sh"
|
|
|
|
BASE16_SHELL="$HOME/.config/base16-shell/base16-atelierdune.dark.sh"
|
|
|
|
BASE16_SHELL="$HOME/.config/base16-shell/base16-brewer.dark.sh"
|
|
|
|
# Also modify: https://github.com/chriskempson/base16-xresources
|
|
|
|
|
2015-05-04 20:23:46 +02:00
|
|
|
[[ -s $BASE16_SHELL ]] && source $BASE16_SHELL
|
2015-12-19 17:51:59 +01:00
|
|
|
|