mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 21:03:12 +00:00
78bb1a6fa6
This was from before `string` was a thing - `_quote` would be better done as `string escape` and `_echo_var` would be `set --show`.
23 lines
528 B
Fish
23 lines
528 B
Fish
# vim: set filetype=fish sw=4 ts=4 et:
|
|
|
|
set -g prompt_counter 0
|
|
set -g prompt_counter_incr 0
|
|
function fish_prompt
|
|
if test $prompt_counter_incr -eq 1
|
|
set -g prompt_counter (math $prompt_counter + 1)
|
|
set -g prompt_counter_incr 0
|
|
end
|
|
echo "prompt $prompt_counter>"
|
|
end
|
|
function fish_prompt_event --on-event fish_prompt
|
|
set -g prompt_counter_incr 1
|
|
end
|
|
|
|
set -g fish_greeting ''
|
|
|
|
function fish_title
|
|
end
|
|
|
|
function _marker -d '_marker string - prints @MARKER:$string@'
|
|
echo "@MARKER:$argv[1]@"
|
|
end
|