This commit is contained in:
2024-10-14 18:49:58 +02:00
parent 84237bcafc
commit 14b1e3b61f
2 changed files with 4 additions and 3 deletions

5
.zshrc
View File

@@ -67,7 +67,8 @@ zstyle ':fzf-tab:complete:cd:*' fzf-preview 'ls --color $realpath'
zstyle ':fzf-tab:complete:__zoxide_z:*' fzf-preview 'ls --color $realpath'
# Aliases
alias ls='ls --color'
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias v='nvim'
alias c='clear'
@@ -76,6 +77,6 @@ eval "$(fzf --zsh)"
eval "$(zoxide init --cmd cd zsh)"
# Automatically start Tmux
if [ -x "$(command -v tmux)" ] && [ -n "${DISPLAY}" ] && [ -z "${TMUX}" ]; then
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