Please help with powerline. I am using Ubuntu 20.04.3. I have powerline installed but fish says it isn't. Unable to use any powerline based prompts.
This is output of pip3 show powerline-status
Name: powerline-status
Version: 2.7
Location: /usr/lib/python3/dist-packages/
Requires:
Required-by:
My config contains
set fish_function_path $fish_function_path "/usr/share/powerline/bindings/fish"
source /usr/share/powerline/bindings/fish/powerline-setup.fish
powerline-setup
echo $fish_function_path
does show /usr/lib/python3/dist-packages/powerline/bindings/fish /usr/share/powerline/bindings/fish
Update:
After performing below step the message that install powerline isnt appearing, but situation remains same.
the /usr/lib/python3/dist-packages/...
didnt had fish directory and powerline-setup.fish file; I copied it from /usr/lib/python3/dist-packages/powerline/bindings/fish/powerline-setup.fish
using sudo cp
What is that I am missing.
complete
not to insert space after option insertion? For instance I wanna to write completions for options use :
instead of space to separate values: complete --command mcs --old-option warnaserror: --old-option warnaserror+: --description 'Treat warnings as errors'
.
$ echo -s x (echo x >&2; echo x) 2>&1 | string length
x
2
echo -n (echo -n 1 | string collect -N)
.
kill (jobs -p)
does the job
What about to introduce any environment variable to control what completions are allowed to do and what not? For instance when this variable ($fish_disable_smart_complete
or another name) is not set nothing changes (for backward compatibility) and otherwise:
--condition
complete option is not allowed because potentially it can run for a long time--arguments
for the same reasonWhat do you think about it?
eval $cmd &; echo $last_pid
but this really, really does not seem to want to work...
that wasn't my issue, actually I figured it out: the command I was trying to run was all in one string, I needed to string split
it an additional time.
Unfortumately this didn't solve what seems to be a much deeper problem of Xorg
absolutely not wanting to do what I'm trying to do here lol
having to use the
set cmd (echo original command here)
$cmd &
pattern is a little awkward, but it works
$ string replace -r '(\w+)\s+(\w+)' '$2 $1 $$' 'left right'
right left $
$ string replace -r '(\w+)\s+(\w+)' '\$2 \$1 $$' 'left right'
right left $
string replace
has a superfluous round of unescaping in the replacement part so you'll have to double up the slashes one more time. There's no great way of fixing it so we've introduced a feature flag until we figure out how to detect it and warn about it.
mqudsi on master
completions/apt: Use is_first_t… completions/apt: Read from the … (compare)
tomascarreira/fish-shell