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
😄 :smile: | |
😆 :laughing: | |
😊 :blush: | |
😃 :smiley: | |
☺️ :relaxed: | |
😏 :smirk: | |
😍 :heart_eyes: | |
😘 :kissing_heart: | |
😚 :kissing_closed_eyes: | |
😳 :flushed: |
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
# Bash | |
# Credits: https://unix.stackexchange.com/a/684760 | |
# Difference with built-in one is that it won't run the | |
# command when closing the editor | |
__edit_command_no_execute () { | |
local editor="${EDITOR:-vim}" | |
local tmpf="$(mktemp)" | |
printf '%s\n' "$READLINE_LINE" >| "$tmpf" | |
"$editor" "$tmpf" | |
READLINE_LINE="$(cat "$tmpf")" |