Live data from Hacker News

Bashstrap – For your OS X terminal

github.com

41–50 of 52 posts

Re: Bashstrap – For your OS X terminal

#41
post #33
post #23

I remember spending so many happy hours customizing bash back in my early years with unix. Now I'm older and wiser, and I just use fish. http://fishshell.com I think that it should be especially appreciated by those who use OSX for its "it just works" approach. A couple of pro tips: * Instead of running chsh to change your default login shell just change the shell command for Terminal.app it iTerm. This means that sc…

Clicked on comments to say the same. When I discovered fish, I felt like "where have I been". But there's one downside though: I got used (used as in muscle reflexes) to things like ls -l `where something` and they do not work anymore, fish is not backwards compatible with bash.

What's wrong with "ls -l (which cmd)"?

Re: Bashstrap – For your OS X terminal

#42
post #33

Earlier quoted context omitted.

Clicked on comments to say the same. When I discovered fish, I felt like "where have I been". But there's one downside though: I got used (used as in muscle reflexes) to things like ls -l `where something` and they do not work anymore, fish is not backwards compatible with bash.

What's wrong with "ls -l (which cmd)"?

Nothing wrong, but just a lack of muscle reflex. I've been using bash for what, almost 20 years?

Re: Bashstrap – For your OS X terminal

#46
post #44

What's wrong with $EDITOR? Why would I want a terminal command for using a GUI editor? Why would I want a GUI editor at all?

>Why would I want a terminal command for using a GUI editor?

Because you use Sublime Text and you spend a lot of time at the CLI?

Re: Bashstrap – For your OS X terminal

#47
post #23

I remember spending so many happy hours customizing bash back in my early years with unix. Now I'm older and wiser, and I just use fish. http://fishshell.com I think that it should be especially appreciated by those who use OSX for its "it just works" approach. A couple of pro tips: * Instead of running chsh to change your default login shell just change the shell command for Terminal.app it iTerm. This means that sc…

I like it but the lack of vi mode is a deal breaker for me...

The ticket for it has been open for 2 years but it seems that it's finally getting close to implementation...

https://github.com/fish-shell/fish-shell/issues/65

Re: Bashstrap – For your OS X terminal

#49
post #25

I'm a zsh-er and use oh-my-zsh, but I borrowed the syntax highlighting, called it `sat` short for "source cat", and piped through less for paginated output: # before use: [sudo] easy_install pygments alias sat='pygmentize -O style=monokai -f console256 -g | less' I like these kinds of projects, because someone always shows me something in my set up I don't have, and it's really trivial to borrow from them. In return,…

That's awesome. Will definitely be adding it in, thanks!

Re: Bashstrap – For your OS X terminal

#50

The one thing I always add to my profile is "export COMMAND_MODE=unix2003". This will make some commands behave as you would expect them to under Linux instead of BSD. Don't recall seeing that in my brief scan of the dotfiles.

For the record: COMMAND_MODE=unix2003 is already default in Terminal(.app), but it should definitely be set for iTerm.
Post reply on HN