ridiculousfish on master
Catch invalid function names in… (compare)
faho on master
__fish_list_current_token: Do n… (compare)
EDITOR="emacsclient -c", and when you later use
$EDITORwithout quotes, bash forgets that you originally used quotes and splits it up again. This is the reason why you almost always need to quote variables in bash.
emacsclient -cas one argument, so it tries to execute e.g.
string match -rto extract a directory from $PWD, but I can't make it work 100% correctly. What I want is this: I might be in '/Users/cecep/projects/project-dir' or maybe in a subdirectory like '/Users/cecep/projects/project-dir/data'. In both cases, I want
string match -rto print '/Users/cecep/projects/project-dir'. What I came up with so far is:
string match -r "$PROJECT_HOME\/.*?\/" "$PWD"(where $PROJECT_HOME is set to '/Users/cecep/projects'). This works fine when I'm in a subdirectory of 'project-dir', but doesn't find anything when I'm in 'project-dir' itself. I don't get what's wrong with the regex I'm using. Any hints? Would it be easier to use something other than
string match -r?
string escape --style=regex -- $PROJECT_HOME)
string match -r "$PROJECT_HOME\/.*?\/?" "$PWD", it always just prints $PROJECT_HOME (i.e. '/Users/cecep/projects')
sed 's/foo/bar/the "/" is the character after the operation, so it separates the "foo" and "bar" regex. It's also not really special inside those - try
sed 's_foo_bar_'. It's just the first character after
string match -re (string escape --style=regex -- $PROJECT_HOME)"/?.*" $PWD
function my_function --description "My function description" echo $function_description end
~ > function f set docstring "this is f it has a docstring and can print it" functions -d $docstring (status function) echo this is f with the docstring: echo $docstring end ~ > f this is f with the docstring: this is f it has a docstring and can print it ~> functions f # Defined interactively function f --description this\ is\ f\nit\ has\ a\ docstring\nand\ can\ print\ it set docstring "this is f it has a docstring and can print it" functions -d $docstring (status function) echo this is f with the docstring: echo $docstring end
string lower: get the first character, lowercase it and add it to the rest of the string starting at index 2 (= without the ":")
mkfifoshows an option
-pwhich does not exist. (i assume this is because the completions are generated from the man-docs which mention this option as having been considered but not implemented)