update doc

This commit is contained in:
Gokcehan committed 2021-01-24 16:33:49 +03:00
1 parent 873cfe87a1
commit ea1ff74e55
3 files changed
+23

No files matched your search

+7
View File
@@ -1202,6 +1202,13 @@ You can define it just as you would define any other command:
lf -remote "send $id set promptfmt \"$fmt\"" lf -remote "send $id set promptfmt \"$fmt\""
}} }}
If you want to print escape sequences, you may redirect 'printf' output to '/dev/tty'.
The following xterm specific escape sequence sets the terminal title to the working directory:
cmd on-cd &{{
printf "\033]0; $PWD\007" > /dev/tty
}}
This command runs whenever you change directory but not on startup. This command runs whenever you change directory but not on startup.
You can add an extra call to make it run on startup as well: You can add an extra call to make it run on startup as well:
+8
View File
@@ -1346,6 +1346,14 @@ define any other command:
lf -remote "send $id set promptfmt \"$fmt\"" lf -remote "send $id set promptfmt \"$fmt\""
}} }}
If you want to print escape sequences, you may redirect 'printf' output to
'/dev/tty'. The following xterm specific escape sequence sets the terminal
title to the working directory:
cmd on-cd &{{
printf "\033]0; $PWD\007" > /dev/tty
}}
This command runs whenever you change directory but not on startup. You can This command runs whenever you change directory but not on startup. You can
add an extra call to make it run on startup as well: add an extra call to make it run on startup as well:
+8
View File
@@ -1323,6 +1323,14 @@ There is a special command 'on-cd' that runs a shell command when it is defined
}} }}
.EE .EE
.PP .PP
If you want to print escape sequences, you may redirect 'printf' output to '/dev/tty'. The following xterm specific escape sequence sets the terminal title to the working directory:
.PP
.EX
cmd on-cd &{{
printf "\e033]0; $PWD\e007" > /dev/tty
}}
.EE
.PP
This command runs whenever you change directory but not on startup. You can add an extra call to make it run on startup as well: This command runs whenever you change directory but not on startup. You can add an extra call to make it run on startup as well:
.PP .PP
.EX .EX