2,851 reputation
11235
bio website michaeldurrant.com
location Cambridge, MA
age 39
visits member for 2 years, 8 months
seen 24 mins ago

rails ruby


Apr
14
comment What are the color codes that I can use in my PS1 prompt?
+1 that is useful info. thanks!
Apr
13
comment How can I make my .bashrc call to shopt -s autocd depend on the bash version?
+1 for useful info. downvote not from me.
Apr
13
answered How can I “stack” shell aliases?
Apr
12
accepted How can I make my .bashrc call to shopt -s autocd depend on the bash version?
Apr
12
comment How can I make my .bashrc call to shopt -s autocd depend on the bash version?
I did thanks you. I was nervous that $ [[ $(uname) -eq dsdss ]] && echo 'y' returned 'y'
Apr
12
revised How can I make my .bashrc call to shopt -s autocd depend on the bash version?
edited title
Apr
12
comment How can I make my .bashrc call to shopt -s autocd depend on the bash version?
How do I write the version test? I've tried dozens of different attempts but can't get the syntax right..
Apr
12
comment How can I make my .bashrc call to shopt -s autocd depend on the bash version?
check $BASH_VERSION >= 4 perhaps? Seems poor way though.
Apr
12
asked How can I make my .bashrc call to shopt -s autocd depend on the bash version?
Apr
12
answered What are the color codes that I can use in my PS1 prompt?
Apr
12
asked What are the color codes that I can use in my PS1 prompt?
Apr
12
revised How can I select a beginning…ending portion of a '/' delimited string (PS1 prompt in my case)
deleted 152 characters in body
Apr
12
comment How can I select a beginning…ending portion of a '/' delimited string (PS1 prompt in my case)
yup, see my updated answer! Includes git branch!
Apr
12
revised How can I select a beginning…ending portion of a '/' delimited string (PS1 prompt in my case)
added 703 characters in body
Apr
12
accepted How can I select a beginning…ending portion of a '/' delimited string (PS1 prompt in my case)
Apr
12
comment How can I select a beginning…ending portion of a '/' delimited string (PS1 prompt in my case)
+1 yeah I go with the carriage return at the end but I am displaying so much other stuff in my PS1 now that even the full dir path is too long! Thanks for this great answer. likely to accept it. upvoted as a minimum.
Apr
12
revised How can I select a beginning…ending portion of a '/' delimited string (PS1 prompt in my case)
edited title
Apr
12
asked How can I select a beginning…ending portion of a '/' delimited string (PS1 prompt in my case)
Apr
10
answered Adding to PS1 in bash_profile
Apr
9
awarded  Nice Question