mirror of
https://github.com/eRgo35/dots.git
synced 2025-12-16 15:36:11 +01:00
funny fish
This commit is contained in:
11
.config/fish/functions/_pure_prompt_new_line.fish
Normal file
11
.config/fish/functions/_pure_prompt_new_line.fish
Normal file
@@ -0,0 +1,11 @@
|
||||
function _pure_prompt_new_line \
|
||||
--description "Do not add a line break to a brand new session" \
|
||||
--on-event fish_prompt
|
||||
|
||||
set --local new_line ''
|
||||
if not _pure_is_single_line_prompt; and test "$_pure_fresh_session" = false
|
||||
set new_line "\n"
|
||||
end
|
||||
|
||||
echo -e -n (_pure_prompt_beginning)"$new_line"
|
||||
end
|
||||
Reference in New Issue
Block a user