aboutsummaryrefslogtreecommitdiff
path: root/config/zsh/.zshrc
diff options
context:
space:
mode:
authorCharles Cabergs <charles.cabergs@colruytgroup.com>2022-06-10 15:34:37 +0200
committerCharles Cabergs <charles.cabergs@colruytgroup.com>2022-06-10 15:34:37 +0200
commit414a32702300e073d221d462599dd92f11ed9411 (patch)
tree321b4078940f1c4d806d0cde279a09bd985c2b0d /config/zsh/.zshrc
parent0f6ae6983de4c76f282add379f356ad68ff6d729 (diff)
downloaddotfiles-414a32702300e073d221d462599dd92f11ed9411.tar.gz
dotfiles-414a32702300e073d221d462599dd92f11ed9411.tar.bz2
dotfiles-414a32702300e073d221d462599dd92f11ed9411.zip
Added ocaml neovim lsp, removing gutentags
Diffstat (limited to 'config/zsh/.zshrc')
-rw-r--r--config/zsh/.zshrc19
1 files changed, 10 insertions, 9 deletions
diff --git a/config/zsh/.zshrc b/config/zsh/.zshrc
index 9e9f583..e7dac3d 100644
--- a/config/zsh/.zshrc
+++ b/config/zsh/.zshrc
@@ -66,15 +66,15 @@ chpwd() {
[ "$(uname)" = 'Linux' ] && [ "$(stat -c "%U" .)" = "$USER" ] && touch . # to sort by last cd
# change conda env if name of the directory is the name of an env
- [ ! -d "$PWD/.git" ] && return
- name="$(basename "$PWD")"
- [ "$name" = $CONDA_DEFAULT_ENV ] && return
- [ ! -e "$HOME/conda_envs" ] && conda env list > "$HOME/conda_envs"
- < "$HOME/conda_envs" \
- cut -d ' ' -f 1 |
- sed -e '/^#/d' -e '/^$/d' -e '/^base$/d' |
- grep -q "$name" &&
- conda activate "$name"
+ # [ ! -d "$PWD/.git" ] && return
+ # name="$(basename "$PWD")"
+ # [ "$name" = $CONDA_DEFAULT_ENV ] && return
+ # [ ! -e "$HOME/conda_envs" ] && conda env list > "$HOME/conda_envs"
+ # < "$HOME/conda_envs" \
+ # cut -d ' ' -f 1 |
+ # sed -e '/^#/d' -e '/^$/d' -e '/^base$/d' |
+ # grep -q "$name" &&
+ # conda activate "$name"
}
# https://wiki.archlinux.org/title/Zsh#Shortcut_to_exit_shell_on_partial_command_line
@@ -136,3 +136,4 @@ if [ -f "/usr/local/anaconda3/etc/profile.d/mamba.sh" ]; then
fi
# <<< conda initialize <<<
+eval "$(opam env)"