Autostart zsh
This commit is contained in:
parent
07ae4e4d27
commit
024231c491
3 changed files with 6 additions and 0 deletions
4
_bashrc
4
_bashrc
|
@ -24,6 +24,10 @@ mkcd() {
|
||||||
cd "$1"
|
cd "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [ "$PREFERRED_SHELL" = zsh ] && command -v ls > /dev/null; then
|
||||||
|
exec zsh
|
||||||
|
fi
|
||||||
|
|
||||||
export PS1="
|
export PS1="
|
||||||
$(tput bold)$(tput setaf 1)[$(tput setaf 3)\u$(tput setaf 2)@$(tput setaf 4)\H $(tput setaf 5)\w$(tput setaf 1)]$(tput setaf 7)
|
$(tput bold)$(tput setaf 1)[$(tput setaf 3)\u$(tput setaf 2)@$(tput setaf 4)\H $(tput setaf 5)\w$(tput setaf 1)]$(tput setaf 7)
|
||||||
$ $(tput sgr0)"
|
$ $(tput sgr0)"
|
||||||
|
|
1
_zshrc
1
_zshrc
|
@ -30,6 +30,7 @@ function zle-keymap-select {
|
||||||
}
|
}
|
||||||
zle -N zle-keymap-select
|
zle -N zle-keymap-select
|
||||||
|
|
||||||
|
unset PREFERRED_SHELL
|
||||||
[ -f "$HOME/./config/bashrc" ] && emulate sh -c "source $HOME/./config/bashrc"
|
[ -f "$HOME/./config/bashrc" ] && emulate sh -c "source $HOME/./config/bashrc"
|
||||||
[ -f "$HOME/.bashrc" ] && emulate sh -c "source $HOME/.bashrc"
|
[ -f "$HOME/.bashrc" ] && emulate sh -c "source $HOME/.bashrc"
|
||||||
|
|
||||||
|
|
|
@ -114,6 +114,7 @@
|
||||||
# Environment variables only for this user/session
|
# Environment variables only for this user/session
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
|
PREFERRED_SHELL = "zsh";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Good HM hygiene
|
# Good HM hygiene
|
||||||
|
|
Loading…
Add table
Reference in a new issue