This file contains hidden or 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
## | |
## kerly - simple and stupid wrapper for kerl in fish | |
## | |
if not set -q KERLY_HOME | |
set -g KERLY_HOME $HOME/.kerly | |
end | |
function kerly --description "kerly: fish plugin to manage kerl installations" | |
# copy all but the first argument to $scargs |
This file contains hidden or 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
-define(ASCII, 2#0:1, _:7). | |
-define(LEAD2, 2#110:3, _:5). | |
-define(LEAD3, 2#1110:4, _:4). | |
-define(LEAD4, 2#11110:5, _:3). | |
-define(CONT, 2#10:2, _:6). | |
utf8_length(Data) -> | |
utf8_length(Data, 0). | |
utf8_length(<<>>, Counter) -> |