2018-06-13 21:38:45 +02:00
|
|
|
#setting prompt
|
|
|
|
#call powerline
|
|
|
|
#if [ -f `which powerline-daemon` ]; then
|
|
|
|
#powerline-daemon -q
|
|
|
|
#. /usr/lib/python3.6/site-packages/powerline/bindings/zsh/powerline.zsh
|
|
|
|
#fi
|
|
|
|
##set zsh theme et dircolor en fonction de term
|
2022-04-05 22:10:22 +02:00
|
|
|
if [ $TERM != "linux" ]; then
|
2018-06-18 21:12:35 +02:00
|
|
|
POWERLEVEL9K_MODE="awesome-fontconfig"
|
2020-06-11 16:18:03 +02:00
|
|
|
ZSH_THEME="powerlevel10k/powerlevel10k"
|
2018-06-13 21:38:45 +02:00
|
|
|
eval `dircolors ~/.dircolors/dircolors.256dark`
|
2018-06-15 20:36:33 +02:00
|
|
|
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(ssh context dir rbenv vcs)
|
2018-09-15 11:23:18 +02:00
|
|
|
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status virtualenv root_indicator background_jobs history time)
|
2018-06-13 21:38:45 +02:00
|
|
|
else
|
2020-06-14 21:50:30 +02:00
|
|
|
ZSH_THEME="rkj-repos"
|
2022-04-05 22:10:22 +02:00
|
|
|
eval `dircolors ~/.dircolors/dircolors.ansi-dark`
|
2018-06-13 21:38:45 +02:00
|
|
|
fi
|
|
|
|
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
|
2021-02-09 19:08:51 +01:00
|
|
|
|
|
|
|
#launch tmux on ssh connection
|
|
|
|
|
2022-04-05 22:10:22 +02:00
|
|
|
##if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then
|
|
|
|
if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]]; then
|
2022-04-21 19:59:51 +02:00
|
|
|
tmux new-session -t $(hostname) || tmux new-session -s $(hostname)
|
2021-02-09 19:08:51 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-12-21 17:32:39 +01:00
|
|
|
if [ -z "$SSH_AUTH_SOCK" ] ; then
|
|
|
|
eval `ssh-agent -s`
|
|
|
|
fi
|