fish config
This commit is contained in:
5
dot_config/private_fish/config.fish
Normal file
5
dot_config/private_fish/config.fish
Normal file
@@ -0,0 +1,5 @@
|
||||
if status is-interactive
|
||||
# Commands to run in interactive sessions can go here
|
||||
fenv source ~/.profile
|
||||
end
|
||||
|
||||
4
dot_config/private_fish/fish_plugins
Normal file
4
dot_config/private_fish/fish_plugins
Normal file
@@ -0,0 +1,4 @@
|
||||
jorgebucaran/fisher
|
||||
oh-my-fish/plugin-foreign-env
|
||||
jhillyerd/plugin-git
|
||||
patrickf1/fzf.fish@v9.7
|
||||
25
dot_config/private_fish/functions/fish_prompt.fish
Normal file
25
dot_config/private_fish/functions/fish_prompt.fish
Normal file
@@ -0,0 +1,25 @@
|
||||
function fish_prompt --description 'Write out the prompt'
|
||||
set -l last_status $status
|
||||
|
||||
my_venv_prompt
|
||||
|
||||
prompt_login
|
||||
|
||||
echo -n ':'
|
||||
|
||||
# PWD
|
||||
set_color $fish_color_cwd
|
||||
echo -n (prompt_pwd)
|
||||
set_color normal
|
||||
|
||||
__terlar_git_prompt
|
||||
fish_hg_prompt
|
||||
echo
|
||||
|
||||
if not test $last_status -eq 0
|
||||
set_color $fish_color_error
|
||||
end
|
||||
|
||||
echo -n '➤ '
|
||||
set_color normal
|
||||
end
|
||||
5
dot_config/private_fish/functions/my_venv_prompt.fish
Normal file
5
dot_config/private_fish/functions/my_venv_prompt.fish
Normal file
@@ -0,0 +1,5 @@
|
||||
function my_venv_prompt -d "Custom venv prompt part"
|
||||
if set -q VIRTUAL_ENV
|
||||
echo -n -s (set_color -b blue white) "(" (basename "$VIRTUAL_ENV") ")" (set_color normal) " "
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user