We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eeb3037 commit c229188Copy full SHA for c229188
.bashrc
@@ -6,7 +6,21 @@
6
if [[ $- == *i* ]]; then
7
if command -v zsh &> /dev/null; then
8
# https://askubuntu.com/a/1292415
9
- export SHELL=`which zsh`
10
- zsh
+ export SHELL=$(which zsh)
+
11
+ # https://stackoverflow.com/a/10341338
12
+ # https://askubuntu.com/a/525787
13
+ if [[ -o login ]]; then
14
+ exec zsh -l
15
+ else
16
+ exec zsh
17
+ fi
18
19
+ # The exec command replaces the current shell and therefore terminates the reading of this file.
20
+ # if [ $? -eq 0 ]; then
21
+ # return 0
22
+ # else
23
+ # echo "There was an issue in running zsh. Please check your configuration. Dropping to bash shell."
24
+ # fi
25
fi
26
0 commit comments