summaryrefslogtreecommitdiff
path: root/.config/zsh
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-15 18:12:21 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-15 18:12:21 +0100
commitfc84029caa9cc97cb6a380604aab50f564438272 (patch)
tree5f5aa5931b4152cc82f11b77e3723e8d9edc45dc /.config/zsh
parent1a29a710459c436c721eee558eb9a32701213a2e (diff)
Move language managers to a separate zsh file
Diffstat (limited to '.config/zsh')
-rw-r--r--.config/zsh/.zshrc6
-rw-r--r--.config/zsh/managers7
2 files changed, 10 insertions, 3 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
index 26fbb1f..a39b3f9 100644
--- a/.config/zsh/.zshrc
+++ b/.config/zsh/.zshrc
@@ -34,9 +34,6 @@ zsh_add_plugin "zsh-users/zsh-syntax-highlighting"
# For more plugins: https://github.com/unixorn/awesome-zsh-plugins
# More completions https://github.com/zsh-users/zsh-completions
-# Init pyenv
-eval "$(pyenv init -)"
-
# History in cache directory:
HISTSIZE=100000
SAVEHIST=100000
@@ -78,3 +75,6 @@ compinit
# Edit line in vim with ctrl-e:
autoload edit-command-line; zle -N edit-command-line
bindkey '^e' edit-command-line
+
+# Source language managers
+source $ZDOTDIR/functions
diff --git a/.config/zsh/managers b/.config/zsh/managers
new file mode 100644
index 0000000..5a5ade2
--- /dev/null
+++ b/.config/zsh/managers
@@ -0,0 +1,7 @@
+# Language managers
+
+# Init pyenv
+eval "$(pyenv init -)"
+
+# Init fnm (node manager)
+eval "$(fnm env)"