mirror of
https://github.com/GRFreire/dotfiles.git
synced 2026-01-09 20:19:37 +00:00
zsh: add scripts to the ce fzf
This commit is contained in:
parent
97ae5b1d76
commit
c271faee6b
4
.zshrc
4
.zshrc
@ -28,8 +28,8 @@ zinit light zsh-users/zsh-completions
|
||||
# Alias config to manage dotfiles with git
|
||||
alias config="git --git-dir=\$HOME/.dotfiles/ --work-tree=\$HOME"
|
||||
|
||||
# Config Edit
|
||||
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"
|
||||
# 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"
|
||||
bindkey -s '^e' 'ce\n'
|
||||
|
||||
# Alias for python3
|
||||
|
||||
Loading…
Reference in New Issue
Block a user