From 8e362c7306a52e59a7a54bf3909cd0af70798b9c Mon Sep 17 00:00:00 2001 From: Guilherme Rugai Freire <41879254+GRFreire@users.noreply.github.com> Date: Fri, 13 Aug 2021 16:26:40 -0300 Subject: [PATCH] zsh: fix config edit alias config edit alias was only working if you were in the home directory --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 5367ab8..6ebb976 100644 --- a/.zshrc +++ b/.zshrc @@ -27,7 +27,7 @@ zinit light zsh-users/zsh-completions alias config="git --git-dir=\$HOME/.dotfiles/ --work-tree=\$HOME" # Config Edit -alias ce="config ls-tree -r master --name-only | fzf --info=inline --prompt='Select a file: ' --preview='bat --paging=never --style=plain --color=always {}' | xargs -r $EDITOR" +alias ce="config ls-tree -r master --name-only \$HOME | fzf --info=inline --prompt='Select a file: ' --preview='bat --paging=never --style=plain --color=always {}' | xargs -r \$EDITOR" bindkey -s '^e' 'ce\n' # Alias for python3