☰
Debian Codegraph
@
0.2.3+git20140220.55279f0-1
/
/
ondir_prompt_hook.fish
☽
☼
ondir_prompt_hook.fish
code
plain
raw
symbols
SCIP
GPL-2+
2001-2013 Alec Thomas <
[email protected]
>
debian/copyright
1
# copy this file to ~/.config/fish/functions
2
function
ondir_prompt_hook
--on-event fish_prompt
3
if
test
! -e
"
$OLDONDIRWD
"
;
set
-g OLDONDIRWD /;
end
;
4
if
[
"
$OLDONDIRWD
"
!=
"
$PWD
"
];
eval
(
ondir
$OLDONDIRWD
$PWD
);
end
;
5
set
-g OLDONDIRWD
"
$PWD
"
;
6
end