summaryrefslogtreecommitdiff
path: root/.config/fish/functions/__abbr_tips_bind_newline.fish
diff options
context:
space:
mode:
authorRoger Gonzalez <roger@rogs.me>2023-03-18 16:40:57 -0300
committerRoger Gonzalez <roger@rogs.me>2023-03-18 16:40:57 -0300
commit8600374371f91843064441113f4023cda1730877 (patch)
treebb4677ec186dd5c323f1f010207076b7df285606 /.config/fish/functions/__abbr_tips_bind_newline.fish
parentc95dd49df12f4f8dc13cf3bdc4dad70a060bd5eb (diff)
General fish fixes and updates
Diffstat (limited to '.config/fish/functions/__abbr_tips_bind_newline.fish')
-rw-r--r--.config/fish/functions/__abbr_tips_bind_newline.fish10
1 files changed, 10 insertions, 0 deletions
diff --git a/.config/fish/functions/__abbr_tips_bind_newline.fish b/.config/fish/functions/__abbr_tips_bind_newline.fish
new file mode 100644
index 00000000..8cc8992c
--- /dev/null
+++ b/.config/fish/functions/__abbr_tips_bind_newline.fish
@@ -0,0 +1,10 @@
+function __abbr_tips_bind_newline
+ if test $__abbr_tips_used != 1
+ if abbr -q -- (string trim -- (commandline))
+ set -g __abbr_tips_used 1
+ else
+ set -g __abbr_tips_used 0
+ end
+ end
+ commandline -f 'execute'
+end