From cf8e746d0c04aec16df8e69d2987c785cb510d46 Mon Sep 17 00:00:00 2001 From: liljencrantz Date: Wed, 26 Sep 2007 02:14:47 +1000 Subject: First stab at dropping all support for readlines inputrc files and instead using an internal system for performing keybinding. darcs-hash:20070925161447-75c98-1feaef88a4b518badb7879f598f06ab650a8f93b.gz --- share/functions/__fish_bind_test2.fish | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 share/functions/__fish_bind_test2.fish (limited to 'share/functions/__fish_bind_test2.fish') diff --git a/share/functions/__fish_bind_test2.fish b/share/functions/__fish_bind_test2.fish new file mode 100644 index 00000000..8530451c --- /dev/null +++ b/share/functions/__fish_bind_test2.fish @@ -0,0 +1,20 @@ + +function __fish_bind_test2 +set -l args +for i in (commandline -poc) + switch $i + case "-*" + + case "*" + set args $args $i + end +end + + switch (count $args) + case 2 + return 0 + end + + return 1 + +end -- cgit v1.2.3