From 1b0c7ed77e72e9fb8c2d28b9bbbc061967bc2310 Mon Sep 17 00:00:00 2001 From: samsapti Date: Wed, 15 Jun 2022 14:46:27 +0200 Subject: [PATCH] Add d, s and re aliases --- zsh/.config/zsh/aliases.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh/.config/zsh/aliases.zsh b/zsh/.config/zsh/aliases.zsh index 55f39d5..d5c0a98 100644 --- a/zsh/.config/zsh/aliases.zsh +++ b/zsh/.config/zsh/aliases.zsh @@ -31,16 +31,16 @@ alias gsa="git submodule add" alias gsur="git submodule update --remote" # Misc. -(( ${+commands[doas]} )) || alias doas="sudo" +(( ${+commands[doas]} )) && alias d="doas" || alias s="sudo" (( ${+commands[nvim]} )) && alias vim="nvim" (( ${+commands[tmux]} )) && alias tmux="tmux -2u" (( ${+commands[dotnet]} )) && alias dnup="dotnet tool list --global | tail -n +3 | awk '{print \$1}' | xargs -l dotnet tool update --global" alias cl="clear" -alias de="doas \$EDITOR" alias e="\$EDITOR" alias grep="grep --color=always" alias ls="ls --color=always" alias q="exit 0" +alias re="sudo \$EDITOR" alias zgrep="zgrep --color=always" # Platform specific