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_test1.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_test1.fish')
-rw-r--r-- | share/functions/__fish_bind_test1.fish | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/share/functions/__fish_bind_test1.fish b/share/functions/__fish_bind_test1.fish new file mode 100644 index 00000000..37f5eeb0 --- /dev/null +++ b/share/functions/__fish_bind_test1.fish @@ -0,0 +1,27 @@ + +function __fish_bind_test1 + +set -l args +set -l use_keys no +for i in (commandline -poc) + switch $i + case -k --k --ke --key + set use_keys yes + + case "-*" + + case "*" + set args $args $i + end +end + +switch $use_keys + case yes + switch (count $args) + case 1 + return 0 + end +end +return 1 + +end |