mirror of
https://github.com/eRgo35/dots.git
synced 2025-12-17 07:56:11 +01:00
funny fish
This commit is contained in:
11
.config/fish/functions/_pure_prompt_current_folder.fish
Normal file
11
.config/fish/functions/_pure_prompt_current_folder.fish
Normal file
@@ -0,0 +1,11 @@
|
||||
set FAILURE 1
|
||||
|
||||
function _pure_prompt_current_folder --argument-names current_prompt_width
|
||||
|
||||
if test -z "$current_prompt_width"; return $FAILURE; end
|
||||
|
||||
set --local current_folder (_pure_parse_directory (math $COLUMNS - $current_prompt_width - 1))
|
||||
set --local current_folder_color (_pure_set_color $pure_color_current_directory)
|
||||
|
||||
echo "$current_folder_color$current_folder"
|
||||
end
|
||||
Reference in New Issue
Block a user