diff options
author | liljencrantz <liljencrantz@gmail.com> | 2007-09-26 02:14:47 +1000 |
---|---|---|
committer | liljencrantz <liljencrantz@gmail.com> | 2007-09-26 02:14:47 +1000 |
commit | cf8e746d0c04aec16df8e69d2987c785cb510d46 (patch) | |
tree | f20053b4e7370efc11e6c8277e2a220b7a386e69 /share/functions/__fish_bind_test2.fish | |
parent | af9c2067e1fecb10ab7540e7f7682211448b81c0 (diff) |
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
Diffstat (limited to 'share/functions/__fish_bind_test2.fish')
-rw-r--r-- | share/functions/__fish_bind_test2.fish | 20 |
1 files changed, 20 insertions, 0 deletions
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 |