mirror of
https://github.com/GRFreire/dotfiles.git
synced 2026-01-10 20:39:39 +00:00
zsh: ce should list non-tracked scripts as well
This commit is contained in:
parent
c271faee6b
commit
4c62346eef
2
.zshrc
2
.zshrc
@ -29,7 +29,7 @@ zinit light zsh-users/zsh-completions
|
|||||||
alias config="git --git-dir=\$HOME/.dotfiles/ --work-tree=\$HOME"
|
alias config="git --git-dir=\$HOME/.dotfiles/ --work-tree=\$HOME"
|
||||||
|
|
||||||
# Config/scripts Edit
|
# 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'
|
bindkey -s '^e' 'ce\n'
|
||||||
|
|
||||||
# Alias for python3
|
# Alias for python3
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user