From 20c705fa3f74932be6877d1ae7c13ad9feebf054 Mon Sep 17 00:00:00 2001 From: rydesun Date: Thu, 26 Aug 2021 16:28:52 +0800 Subject: [PATCH] Update zsh: default cmd behavior --- .config/zsh/zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/zsh/zshrc b/.config/zsh/zshrc index cbfbccb..9feb8eb 100644 --- a/.config/zsh/zshrc +++ b/.config/zsh/zshrc @@ -228,10 +228,12 @@ alias sudo='sudo ' alias ls='ls --color=auto --time-style=iso --human-readable --hyperlink=auto' alias grep='grep --color=auto' alias diff='diff --color=auto' +alias ip='ip --color=auto' +alias ncdu='ncdu --color dark' alias mv='mv -i' alias mitmproxy="mitmproxy --set confdir=$XDG_CONFIG_HOME/mitmproxy" alias mitmweb="mitmweb --set confdir=$XDG_CONFIG_HOME/mitmproxy" -if command -v kitty &>/dev/null; then +if [[ $TERM == 'xterm-kitty' ]]; then alias ssh='kitty +kitten ssh' alias rg='kitty +kitten hyperlinked_grep' fi