Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • I tried it on both Mobaxterm and Putty, and got ls #$CODE, ll #$CODE for the history output. I'm not sure if it works for you, but I had to change sed -i '\$s/\$/ \#\$CODE/' $HISTFILE' to sed -i '\$s/\$/ \#$CODE/' $HISTFILE. I took the `` out before $CODE Commented Oct 1, 2014 at 19:11
  • @lkisac Oddly for me, it gave # (no code) without the escape. Must be some quoting issue. Commented Oct 1, 2014 at 19:17