dotfiles/zsh/.zshrc

42 lines
954 B
Bash
Raw Normal View History

2016-03-30 22:52:31 +02:00
# Path to your oh-my-zsh installation.
2017-03-14 15:18:12 +01:00
export ZSH=$(nix-env -q --out-path oh-my-zsh | cut -d' ' -f 3)/share/oh-my-zsh
2016-03-30 22:52:31 +02:00
# Default plugins (used everywhere)
2017-03-14 15:18:12 +01:00
plugins=(git systemd rsync)
2016-03-30 22:52:31 +02:00
2016-09-04 03:30:09 +02:00
ZSH_THEME="zhann"
2017-02-10 18:41:35 +01:00
DISABLE_AUTO_UPDATE="true"
2016-03-30 22:52:31 +02:00
export EDITOR='vim'
# Set GPG_AGENT_INFO
export GPG_TTY=$(tty)
if [ -f "/tmp/.gpg-agent-info" ]; then
. "/tmp/.gpg-agent-info"
export GPG_AGENT_INFO
fi
# Pick a local at random for this session
export LANG=$(locale -a | grep -vE "(C|POSIX)" | sort -R | head -n1)
unset LC_CTYPE
# Some more aliases
source $HOME/.zsh-aliases
# Define color names
source $HOME/.zsh-color-names
# Local config (not shared)
if [ -f "$HOME/.zsh-local-$HOST" ]; then
source $HOME/.zsh-local-$HOST
fi
2016-09-04 04:28:32 +02:00
# Colors files (if file exists
if [ -f "$HOME/.dir_colors" ]; then
eval `dircolors ~/.dir_colors`
fi
2017-03-14 15:18:12 +01:00
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
source $ZSH/oh-my-zsh.sh