Skip to content

Commit

Permalink
Add bundle to bootstrap zsh when chsh is not an option
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Jul 3, 2019
1 parent 6341deb commit d3a33ff
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions %zsh.bootstrap/.bashrc
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

0 comments on commit d3a33ff

Please sign in to comment.