From 88af954a0b807a0adcafe600f6e2e30b640c3f04 Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Tue, 17 Apr 2012 20:17:11 -0500 Subject: Fix typos in konsole tips. Thanks to David C. Rankin. --- konsole/tips | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'konsole') diff --git a/konsole/tips b/konsole/tips index 9e95bf4a9..1176417fd 100644 --- a/konsole/tips +++ b/konsole/tips @@ -178,26 +178,44 @@ text while pressing the Shift key?

...that you can let Konsole set the current directory as the window title? -For Bash, put 'export PS1=$PS1"\[\e]0;\H:\w\a\]"' in your ~/.bashrc . +For Bash, put 'export PS1=$PS1"\[\e[0m\H:\w\a\]"' in your ~/.bashrc .

...that you can let Konsole set the current directory as the session name? -For Bash, put 'export PS1=$PS1"\[\e]30;\H:\w\a\]"' in your ~/.bashrc . +For Bash, put 'export PS1=$PS1"\[\e[30m\H:\w\a\]"' in your ~/.bashrc .

...that if you let your shell pass the current directory to Konsole within the prompt -variable, e.g. for Bash with 'export PS1=$PS1"\[\e]31;\w\a\]"' in your ~/.bashrc, then +variable, e.g. for Bash with 'export PS1=$PS1"\[\e[31m\w\a\]"' in your ~/.bashrc, then Konsole can bookmark it, and session management will remember your current working directory on non-Linux systems too? + + +

...that working with remote hosts in Konsole can be made much easier by setting the +prompt to correctly show your hostname and present path? Try setting your prompt in our +~/.bashrc with: "export PS1='\[\e[0m\h:\w> '" You can then just select your prompt and +press middle-mouse to paste it as the source or destination on the command line. + + + + + +

...that you can temporarily set the prompt for Konsole by setting the 'PS1=' variable +without having to edit your ~/.bashrc. Try entering the following on the command line to +set your prompt. It will also include the current time before the path: +PS1='\[\e[0;37m\]\A\[\e[1;34m\] \[\e[1;34m\]\h:\w> \[\e[0m\]' + + +

...that double-clicking will select a whole word? -- cgit v1.2.3