Skip to content

Instantly share code, notes, and snippets.

@imajes
Created December 1, 2009 19:52
Show Gist options
  • Save imajes/246585 to your computer and use it in GitHub Desktop.
Save imajes/246585 to your computer and use it in GitHub Desktop.
% ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2009.10
% cd /home/app/tellica/current
% ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2009.10
% cat .rvmrc
rvm 1.9.1
#
% cd ~app/tellica/current
+preexec:1> print -Pn '\e]0;%n@%m: cd ~app/tellica/current\a'
+-zsh:9> cd /home/app/tellica/current
+cd:1> [[ x/home/app/tellica/current == x... ]]
+cd:3> [[ x/home/app/tellica/current == x.... ]]
+cd:5> [[ x/home/app/tellica/current == x..... ]]
+cd:7> [[ x/home/app/tellica/current == x...... ]]
+cd:10> cd /home/app/tellica/current
+precmd:1> print -Pn '\e]0;%n@%m: %~\a'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment