MANUAL PIPELINE @ main
This commit is contained in:
parent
d583279522
commit
10825131ee
|
@ -1,6 +1,5 @@
|
||||||
function fish_title --argument-names last_cmd
|
function fish_title --argument-names last_cmd
|
||||||
set prefix ""
|
set prefix ""
|
||||||
set last_path (string split ' ' $last_cmd)[2..]
|
|
||||||
|
|
||||||
if set -q SSH_CLIENT
|
if set -q SSH_CLIENT
|
||||||
if not set -q TMUX
|
if not set -q TMUX
|
||||||
|
@ -13,7 +12,14 @@ function fish_title --argument-names last_cmd
|
||||||
if [ fish != $_ ]
|
if [ fish != $_ ]
|
||||||
switch $_
|
switch $_
|
||||||
case vi vim nvim
|
case vi vim nvim
|
||||||
|
set last_path (string split ' ' $last_cmd)[2..]
|
||||||
|
|
||||||
|
if test -n "$last_path"
|
||||||
|
and test -f "$last_path"
|
||||||
echo "$prefix$_ $(path basename $last_path)"
|
echo "$prefix$_ $(path basename $last_path)"
|
||||||
|
else
|
||||||
|
echo "$prefix$last_cmd"
|
||||||
|
end
|
||||||
case '*'
|
case '*'
|
||||||
echo "$prefix$last_cmd"
|
echo "$prefix$last_cmd"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue