mirror of
https://github.com/powerline/powerline.git
synced 2025-07-25 06:46:33 +02:00
Move setup to powerline-setup.fish
This file is supposed to be placed in /usr/share/fish/functions.
This commit is contained in:
parent
64e23d346e
commit
e489e549a6
@ -158,7 +158,8 @@ is the absolute path to your Powerline installation directory:
|
|||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
. {repository_root}/powerline/bindings/fish/powerline.fish
|
set fish_function_path $fish_function_path "{repository_root}/powerline/bindings/fish"
|
||||||
|
powerline-setup
|
||||||
|
|
||||||
Tmux statusline
|
Tmux statusline
|
||||||
---------------
|
---------------
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
function powerline
|
function powerline-setup
|
||||||
if test -z "$POWERLINE_COMMAND"
|
if test -z "$POWERLINE_COMMAND"
|
||||||
if which powerline-client >/dev/null
|
if which powerline-client >/dev/null
|
||||||
set -g -x POWERLINE_COMMAND powerline-client
|
set -g -x POWERLINE_COMMAND powerline-client
|
||||||
@ -33,4 +33,3 @@ function powerline
|
|||||||
_powerline_tmux_set_columns
|
_powerline_tmux_set_columns
|
||||||
_powerline_tmux_set_pwd
|
_powerline_tmux_set_pwd
|
||||||
end
|
end
|
||||||
powerline
|
|
@ -2,7 +2,8 @@ set POWERLINE_COMMAND "$PWD/scripts/powerline -p $PWD/powerline/config_files"
|
|||||||
set POWERLINE_COMMAND "$POWERLINE_COMMAND -t default_leftonly.segment_data.hostname.args.only_if_ssh=false"
|
set POWERLINE_COMMAND "$POWERLINE_COMMAND -t default_leftonly.segment_data.hostname.args.only_if_ssh=false"
|
||||||
set POWERLINE_COMMAND "$POWERLINE_COMMAND -c ext.shell.theme=default_leftonly"
|
set POWERLINE_COMMAND "$POWERLINE_COMMAND -c ext.shell.theme=default_leftonly"
|
||||||
set VIRTUAL_ENV
|
set VIRTUAL_ENV
|
||||||
. powerline/bindings/fish/powerline.fish ; cd tests/shell/3rd
|
set fish_function_path $fish_function_path "$PWD/powerline/bindings/fish"
|
||||||
|
powerline-setup ; cd tests/shell/3rd
|
||||||
cd .git
|
cd .git
|
||||||
cd ..
|
cd ..
|
||||||
set VIRTUAL_ENV "$HOME/.virtenvs/some-virtual-environment"
|
set VIRTUAL_ENV "$HOME/.virtenvs/some-virtual-environment"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user