Skip to content

Commit 677fbb7

Browse files
committed
[zsh] Fix loading environment
1 parent f678566 commit 677fbb7

File tree

8 files changed

+14
-13
lines changed

8 files changed

+14
-13
lines changed

profile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
2-
export EDITOR='/usr/local/bin/vim'
3-
export PSQL_EDITOR='vim -c"set syntax=pgsql"'
2+
export EDITOR='nvim'
3+
export PSQL_EDITOR='nvim -c"set syntax=pgsql"'
44
export NODE_PATH=/usr/local/lib/node_modules
55

66
# bundle-exec
77
[ -f ~/.bundler-exec.sh ] && source ~/.bundler-exec.sh
88
export NODE_PATH=/usr/local/lib/jsctags/:$NODE_PATH
9-
export NODE_PATH=/usr/local/lib/jsctags/:$NODE_PAT
9+
export NODE_PATH=/usr/local/lib/jsctags/:$NODE_PATH

vimrc

+3
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ set shiftround
6262
map ö [
6363
map ä ]
6464
65+
noremap <c-ö> <esc>
66+
noremap! <c-ö> <esc>
67+
6568
map ° ~
6669
6770
nnoremap g]

zsh/config/editor.zsh

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
export EDITOR='nvim -e'
2-
export VISUAL='nvim'
1+
export EDITOR='nvim'
32

43
alias vim=nvim
54
alias vi=nvim

zsh/config/plugins/nvm/nvm.plugin.zsh

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
export NVM_DIR="$HOME/.nvm"
2-
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
3-
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
4-
51
autoload -U add-zsh-hook
62
load-nvmrc() {
73
local node_version="$(nvm version)"

zsh/env/nvm.zsh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
[[ -z "$NVM_DIR" ]] && export NVM_DIR="$HOME/.nvm"
2-
[[ -f "$NVM_DIR/nvm.sh" ]] && source "$NVM_DIR/nvm.sh"
1+
[[ -z $NVM_DIR ]] && export NVM_DIR=$HOME/.nvm
2+
[[ -f $NVM_DIR/nvm.sh ]] && source $NVM_DIR/nvm.sh

zsh/env/rbenv.zsh

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
export RBENV_ROOT=~/.rbenv
22
path=($RBENV_ROOT/shims "$path[@]")
3-

zshenv

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
typeset -U path
22
path=(~/bin /usr/local/bin "$path[@]")
3-
source ~/.zsh/env/*.zsh
3+
for file in ~/.zsh/env/*.zsh; do source $file; done

zshrc

+4
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,7 @@ source $ZSH/oh-my-zsh.sh
6565
export LANG='de_DE.UTF-8'
6666
export LC_ALL='de_DE.UTF-8'
6767
export TERM='xterm-256color'
68+
69+
export NVM_DIR="$HOME/.nvm"
70+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
71+
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion

0 commit comments

Comments
 (0)