Directory trackng inside fish & ansi-term
This commit is contained in:
parent
6d7be2f63b
commit
d348dff2a5
1 changed files with 11 additions and 7 deletions
|
|
@ -14,14 +14,18 @@ if status --is-login
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function fish_title
|
if [ -n "$INSIDE_EMACS" ]
|
||||||
true
|
# This is here to make emacs and ansi-term work properly; I'm not *quite*
|
||||||
end
|
# sure what it does but it's probably cool.
|
||||||
|
function fish_title
|
||||||
|
true
|
||||||
|
end
|
||||||
|
|
||||||
# This is here to make emacs and ansi-term work properly; I'm not *quite*
|
# emacs dir tracking
|
||||||
# sure what it does but it's probably cool.
|
function prompt_AnSiT -e fish_prompt
|
||||||
function fish_title
|
printf "\eAnSiTc %s\n" "$PWD"
|
||||||
true
|
end
|
||||||
|
printf "\eAnSiTu %s\n" "$USER"
|
||||||
end
|
end
|
||||||
|
|
||||||
# export EDITOR=ec
|
# export EDITOR=ec
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue