Anthony Rodriguez
dc7ee4d021
Add .config/fish/functions/_fzf_extract_var_info.fish Add .config/fish/functions/_fzf_preview_changed_file.fish Add .config/fish/functions/_fzf_preview_file.fish Add .config/fish/functions/_fzf_report_diff_type.fish Add .config/fish/functions/_fzf_report_file_type.fish Add .config/fish/functions/_fzf_search_directory.fish Add .config/fish/functions/_fzf_search_git_log.fish Add .config/fish/functions/_fzf_search_git_status.fish Add .config/fish/functions/_fzf_search_history.fish Add .config/fish/functions/_fzf_search_processes.fish Add .config/fish/functions/_fzf_search_variables.fish Add .config/fish/functions/_fzf_wrapper.fish Add .config/fish/functions/_nvm_index_update.fish Add .config/fish/functions/_nvm_list.fish Add .config/fish/functions/_nvm_version_activate.fish Add .config/fish/functions/_nvm_version_deactivate.fish Add .config/fish/functions/fish_greeting.fish Add .config/fish/functions/fish_mode_prompt.fish Add .config/fish/functions/fish_title.fish Add .config/fish/functions/fzf_configure_bindings.fish Add .config/fish/functions/nvm.fish
15 lines
582 B
Fish
15 lines
582 B
Fish
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
|