-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add bundle to bootstrap zsh when chsh is not an option
- Loading branch information
1 parent
6341deb
commit d3a33ff
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
set bell-style visible | ||
|
||
## Expand PATH if custom program is needed | ||
# case ":$PATH:" in | ||
# *":$HOME/.local/bin:"*) :;; # already there | ||
# *) PATH="$HOME/.local/bin:$PATH";; | ||
# esac | ||
|
||
# Hack to start ZSH from Bash | ||
if [ -t 1 ]; then | ||
if [[ ! -v _start_home ]]; then | ||
# Usefull hack to make tmux open ~ at first, | ||
# but keep $pwd otherwise | ||
cd ~ || return | ||
export _start_home=$(pwd) | ||
fi | ||
# Replace bash process with zsh | ||
exec zsh | ||
fi |