From ed7d2a35228398b03a4229eac50bec85bfb3047d Mon Sep 17 00:00:00 2001 From: Marco Kundt Date: Tue, 15 Sep 2020 00:56:53 +0200 Subject: [PATCH] update --- zsh/.zshrc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index af29970..c2f97d2 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -59,7 +59,7 @@ zstyle ':completion:*:commands' rehash 1 zstyle ':completion:*' completer _oldlist _expand _complete _files _ignored zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' zstyle ':completion:*' use-cache yes -zstyle ':completion:*' menu select=5 +zstyle ':completion:*' menu select=2 zstyle ':vcs_info:*' enable git zstyle ':vcs_info:*' formats "[%{$fg_bold[cyan]%}%b%{$reset_color%}]" @@ -79,7 +79,7 @@ preexec () { alias :q="exit" alias ..="cd .." -alias open="xdg-open" +[[ -x /usr/bin/xdg-open ]] && alias open="xdg-open" wttr() { curl wttr.in/$1 @@ -89,6 +89,4 @@ sshn() { ssh -N -L ${1}:localhost:${2} $3 } -if [[ -x /usr/bin/dircolors ]]; then - eval "$(dircolors)" -fi +[[ -x /usr/bin/dircolors ]] && eval "$(dircolors)"