fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes Altmanningerfish_tab_title to set terminal tab title independent of window titled6ed5f843

master
641 B26 linesraw
1# vim: set filetype=fish sw=4 ts=4 et:
2
3set -g prompt_counter 0
4set -g prompt_counter_incr 0
5function fish_prompt
6    if test $prompt_counter_incr -eq 1
7        set -g prompt_counter (math $prompt_counter + 1)
8        set -g prompt_counter_incr 0
9    end
10    echo "prompt $prompt_counter>"
11end
12function fish_prompt_event --on-event fish_prompt
13    set -g prompt_counter_incr 1
14end
15
16set -g fish_greeting ''
17
18function fish_title
19end
20if functions -q fish_tab_title
21    echo >&2 'ERROR: fish_tab_title unexpectedly defined in test environment'
22end
23
24function _marker -d '_marker string - prints @MARKER:$string@'
25    echo "@MARKER:$argv[1]@"
26end