Created
December 6, 2022 13:37
-
-
Save FeepingCreature/6ddaf8acacd690e1e97b25dca713b0f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export FZF_DEFAULT_COMMAND='find -L * -type f -and -not -name \*.lst' | |
# bind ctrl-E to "edit fuzzy" | |
function edit_fuzzy() { | |
TARGET=$(fzf) | |
if [ $? -eq 0 ] | |
then | |
echo -e "${PS1@P}edit $TARGET" | |
history -s "edit $TARGET" | |
edit "$TARGET" | |
READLINE_LINE="" | |
fi | |
} | |
bind -x '"\C-e":edit_fuzzy' | |
export FZF_DEFAULT_OPTS=$(echo ' --color=fg:#cfcfcf,bg:#141414,hl:#ffffff'\ | |
'--color=fg+:#cfcfcf,bg+:#2b2b2b,hl+:#ffffff'\ | |
'--color=info:#afaf87,prompt:#d7005f,pointer:#af5fff'\ | |
'--color=marker:#87ff00,spinner:#af5fff,header:#87afaf'\ | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment