Add .config/fish/conf.d/path.fish
Remove .config/fish/functions/fish_title.fish
This commit is contained in:
parent
7624b98bdb
commit
9ce4d6c37d
2 changed files with 1 additions and 15 deletions
1
dot_config/fish/conf.d/path.fish
Normal file
1
dot_config/fish/conf.d/path.fish
Normal file
|
@ -0,0 +1 @@
|
||||||
|
fish_add_path ~/bin ~/.local/bin
|
|
@ -1,15 +0,0 @@
|
||||||
function fish_title \
|
|
||||||
--description "Set title to current folder and shell name" \
|
|
||||||
--argument-names last_command
|
|
||||||
|
|
||||||
set --local current_folder (fish_prompt_pwd_dir_length=$pure_shorten_window_title_current_directory_length prompt_pwd)
|
|
||||||
set --local current_command (status current-command 2>/dev/null; or echo $_)
|
|
||||||
|
|
||||||
set --local prompt "$current_folder: $last_command $pure_symbol_title_bar_separator $current_command"
|
|
||||||
|
|
||||||
if test -z "$last_command"
|
|
||||||
set prompt "$current_folder $pure_symbol_title_bar_separator $current_command"
|
|
||||||
end
|
|
||||||
|
|
||||||
echo $prompt
|
|
||||||
end
|
|
Loading…
Reference in a new issue