2014-09-08 02:11:34 +00:00
|
|
|
# vim: set filetype=fish sw=4 ts=4 et:
|
|
|
|
|
2014-09-18 22:45:07 +00:00
|
|
|
set -g prompt_counter 0
|
2014-09-08 02:11:34 +00:00
|
|
|
set -g prompt_counter_incr 0
|
|
|
|
function fish_prompt
|
|
|
|
if test $prompt_counter_incr -eq 1
|
2020-11-09 18:42:46 +00:00
|
|
|
set -g prompt_counter (math $prompt_counter + 1)
|
2014-09-08 02:11:34 +00:00
|
|
|
set -g prompt_counter_incr 0
|
|
|
|
end
|
2014-09-18 22:45:07 +00:00
|
|
|
echo "prompt $prompt_counter>"
|
2014-09-08 02:11:34 +00:00
|
|
|
end
|
|
|
|
function fish_prompt_event --on-event fish_prompt
|
|
|
|
set -g prompt_counter_incr 1
|
|
|
|
end
|
|
|
|
|
|
|
|
set -g fish_greeting ''
|
|
|
|
|
2014-09-08 07:15:53 +00:00
|
|
|
function fish_title
|
|
|
|
end
|
|
|
|
|
2014-09-08 02:11:34 +00:00
|
|
|
function _marker -d '_marker string - prints @MARKER:$string@'
|
|
|
|
echo "@MARKER:$argv[1]@"
|
|
|
|
end
|