Split string into arguments in zshrc to properly activate conda env as it takes 2...
[idea/community.git] / plugins / terminal / resources / .zshrc
1 #!/bin/bash
2
3 # mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
4 bindkey '^[^[[C' forward-word
5 bindkey '^[^[[D' backward-word
6
7 ZDOTDIR=$_OLD_ZDOTDIR
8
9 if [ -n "$JEDITERM_USER_RCFILE" ]
10 then
11   source $JEDITERM_USER_RCFILE
12   unset JEDITERM_USER_RCFILE
13 fi
14
15 if [ -n "$ZDOTDIR" ]
16 then
17   DOTDIR=$ZDOTDIR
18 else
19   DOTDIR=$HOME
20 fi
21
22 if [ -f "$DOTDIR/.zshenv" ]; then
23      source "$DOTDIR/.zshenv"
24 fi
25
26 if [ -n $LOGIN_SHELL ]; then
27   if [ -f "$DOTDIR/.zprofile" ]; then
28        source "$DOTDIR/.zprofile"
29   fi
30 fi
31
32 if [ -f "$DOTDIR/.zshrc" ]; then
33      source "$DOTDIR/.zshrc"
34 fi
35
36 if [ -n $LOGIN_SHELL ]; then
37   if [ -f "$DOTDIR/.zlogin" ]; then
38        source "$DOTDIR/.zlogin"
39   fi
40 fi
41
42 if [ -n "$JEDITERM_SOURCE" ]
43 then
44   source $(echo $JEDITERM_SOURCE)
45   unset JEDITERM_SOURCE
46 fi