mirror of
https://github.com/GRFreire/dotfiles.git
synced 2026-01-10 04:19:38 +00:00
zsh: fix config edit alias
config edit alias was only working if you were in the home directory
This commit is contained in:
parent
0846e0a0d2
commit
8e362c7306
2
.zshrc
2
.zshrc
@ -27,7 +27,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 Edit
|
# 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'
|
bindkey -s '^e' 'ce\n'
|
||||||
|
|
||||||
# Alias for python3
|
# Alias for python3
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user