Commit Graph

7 Commits (a35fd2cea03d2a906c19072aca458fdca344e0b4)

Author SHA1 Message Date
nirenjan 09b20d3a0a Update smartwd to be compatible with Python 3
Prior to this change, running smartwd in a virtualenv with Python 3 gave
a syntax error due to the script treating `print` as a keyword, rather
than a function.

This change fixes the print to work as a function, and also cleans up
some of the comments and code to better comply with PEP8
2018-09-27 13:48:57 -07:00
nirenjan 7e4b71c044 Add 'scripts/' from commit '0e3760e65e20817dab6c03efee9ef545c80eed69'
git-subtree-dir: scripts
git-subtree-mainline: 2c08462a0f
git-subtree-split: 0e3760e65e
2018-04-28 10:19:41 -07:00
nirenjan 9f75a8b596 Move scripts to submodule 2014-05-26 09:31:23 -07:00
nirenjan 38a6c23cc8 Reformat smartwd indentation to compy with Ruby coding guidelines 2013-04-12 15:07:39 -07:00
nirenjan 4413d17282 Fix smartwd script to ensure that it always works
With Ruby version 1.8.5, the smartwd script would abort with an error that
the shift method would take no arguments. Therefore, I have restricted the
use of the script to ruby version 1.8.7 and above.

On older versions, it will simply behave the same as \w in PS1 of bash.
2013-02-19 15:14:12 -08:00
nirenjan 48e6e5edcc Fix smartwd script and update PS1 in bashrc.common 2013-02-14 14:11:12 -08:00
nirenjan 7e6df80ce8 Add smartwd script - WIP 2013-02-14 10:57:42 -08:00