From 534744db72b63e9ab6a9ab3f35a6aa59d45d3b5b Mon Sep 17 00:00:00 2001 From: Mehdi Sadeghi Date: Fri, 16 Apr 2021 14:58:45 +0200 Subject: Add dotfiles. --- .zshrc | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .zshrc (limited to '.zshrc') diff --git a/.zshrc b/.zshrc new file mode 100644 index 0000000..8446c99 --- /dev/null +++ b/.zshrc @@ -0,0 +1,49 @@ +# Path to your oh-my-zsh installation. +if [ ! -d "/usr/share/oh-my-zsh" ]; then + export ZSH=$HOME/.oh-my-zsh +else + export ZSH="/usr/share/oh-my-zsh" +fi + +# simple, frisk, mrtazz, lambda, maran, robbyrussel, random +ZSH_THEME=simple + +# Uncomment the following line to use case-sensitive completion. +CASE_SENSITIVE="false" + +# HYPHEN_INSENSITIVE="true" +DISABLE_AUTO_UPDATE="true" + +# Standard plugins can be found in ~/.oh-my-zsh/plugins/* +# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ +plugins=(git autojump history-substring-search)# timer gem rust cargo) + +# Activate oh-my-zsh +source $ZSH/oh-my-zsh.sh + +_direnv_hook() { + eval "$("/usr/bin/direnv" export zsh)"; +} +typeset -ag precmd_functions; +if [[ -z ${precmd_functions[(r)_direnv_hook]} ]]; then + precmd_functions+=_direnv_hook; +fi + +# nvm settings (good) +#export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" +#[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm + +if [[ -a `which kubectl` ]]; then + source <(kubectl completion zsh 2> /dev/null); +fi + +# For X.org +#setxkbmap \ +# -layout de,ir \ +# -variant nodeadkeys,pes_keypad \ +# -option '' \ +# -option 'grp:alt_shift_toggle' \ +# -option 'shift:both_shiftlock' \ +# -option 'lv3:caps_switch' \ +# -option 'terminate:ctrl_alt_bkspc' \ +# -option 'eurosign:e' -- cgit v1.2.3