added ssh, git, ohmyposh; start tmux only on alacritty

This commit is contained in:
2024-10-18 14:54:50 +02:00
parent 14b1e3b61f
commit 1bf095690f
5 changed files with 213 additions and 10 deletions

18
.zshrc
View File

@@ -41,12 +41,12 @@ bindkey '^n' history-search-forward
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
# Ohne Tmux
#bindkey "^[[H" beginning-of-line
#bindkey "^[[F" end-of-line
#bindkey "^[[2~" delete-char
bindkey "^[[H" beginning-of-line
bindkey "^[[F" end-of-line
bindkey "^[[2~" delete-char
# Mit Tmux
bindkey "^[[1~" beginning-of-line
bindkey "^[[4~" end-of-line
bindkey "^[[1~" beginning-of-line
bindkey "^[[4~" end-of-line
bindkey "^[[3~" delete-char
# History
@@ -76,7 +76,7 @@ alias c='clear'
eval "$(fzf --zsh)"
eval "$(zoxide init --cmd cd zsh)"
# Automatically start Tmux
if [ -x "$(command -v tmux)" ] && [ -n "${DISPLAY}" ] && [ -z "${TMUX}" ] && [[ "$TERM_PROGRAM" != "vscode" ]]; then
exec tmux new-session -A -s ${USER} >/dev/null 2>&1
fi
# Automatically start Tmux (currently handled in Alacritty)
#if [ -x "$(command -v tmux)" ] && [ -n "${DISPLAY}" ] && [ -z "${TMUX}" ] && [[ "$TERM_PROGRAM" != "vscode" ]]; then
# exec tmux new-session -A -s ${USER} >/dev/null 2>&1
#fi