From 4c62346eef6383f19faed0455ae4a548f6fb8b39 Mon Sep 17 00:00:00 2001 From: Guilherme Rugai Freire <41879254+GRFreire@users.noreply.github.com> Date: Sat, 14 Aug 2021 11:35:23 -0300 Subject: [PATCH] zsh: ce should list non-tracked scripts as well --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 03d7e4d..0d760dd 100644 --- a/.zshrc +++ b/.zshrc @@ -29,7 +29,7 @@ zinit light zsh-users/zsh-completions alias config="git --git-dir=\$HOME/.dotfiles/ --work-tree=\$HOME" # Config/scripts Edit -alias ce="echo \"\$(git --git-dir=\$HOME/.scripts/.git ls-tree -r master --name-only bin | sed 's|^|.scripts/|')\n\$(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" + alias ce="echo \"\$(/bin/ls \$HOME/.scripts/bin | sed 's|^|.scripts/bin/|')\n\$(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