diff --git a/.profile b/.profile index 006c0bd..31797f8 100644 --- a/.profile +++ b/.profile @@ -31,6 +31,9 @@ try_export_path $HOME/.yarn/bin try_export_path $HOME/.cargo/bin +# Fzf options +export FZF_DEFAULT_OPTS="--reverse --cycle --margin 0,1" + # Android Studio export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64 export ANDROID_HOME=$HOME/Android/Sdk diff --git a/.zshrc b/.zshrc index 3cc8bf2..1fc89e7 100644 --- a/.zshrc +++ b/.zshrc @@ -28,6 +28,10 @@ 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 | 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 alias python="python3" alias pip="pip3"