Live data from Hacker News

Bashstrap – For your OS X terminal

github.com

21–30 of 52 posts

Re: Bashstrap – For your OS X terminal

#21
post #14

Earlier quoted context omitted.

https://github.com/mathiasbynens/dotfiles is fantastic, I refer to that a lot.

Actually, it looks like Bashstrap is a fork of https://github.com/mathiasbynens/dotfiles . A lot of the commands, file structure, and even parts of the readme are a direct copy-paste…

I just added credit into the repo description. Thanks Mathias!

Re: Bashstrap – For your OS X terminal

#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 scripts in cron etc will still run under bash and you won't break anything accidentally.

* Just like with zsh if you want to get customized there is something called oh-my-fish that helps a bit, but seriously you're 90% there with the defaults.

Re: Bashstrap – For your OS X terminal

#24
post #14

Earlier quoted context omitted.

https://github.com/mathiasbynens/dotfiles is fantastic, I refer to that a lot.

Actually, it looks like Bashstrap is a fork of https://github.com/mathiasbynens/dotfiles . A lot of the commands, file structure, and even parts of the readme are a direct copy-paste…

I thank you for that repo. I forked, customised, and occasionally cherry-pick from dotfiles, and it has improved my everyday terminal use significantly.

Re: Bashstrap – For your OS X terminal

#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, I feel everyone should have a proper git log alias, here's mine:

  alias logg="git log --graph --oneline --all --decorate --abbrev-commit"
Example output: http://d.pr/i/B9LT

Re: Bashstrap – For your OS X terminal

#26
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…

Agreed. In my experience fish just runs a heck of a lot faster than either zsh or bash as well as adding some features I love, like the command syntax highlighting and autocomplete. I couldn't see myself going back to either of those after using it for an extended period of time.

Re: Bashstrap – For your OS X terminal

#27
post #19
post #11

It cuts out the fluff To me it looks like the exact opposite.

I had the same feeling. I already know my username, and if there's a directory name before my prompt the "in" is implicit.

Do you know your username when you are using connected to a tmux over ssh that may or may not have another, very similar, server running inside of a screen?

Re: Bashstrap – For your OS X terminal

#28

Since everyone likes mentioning oh-my-zsh I figured I would mentioned prezto https://github.com/sorin-ionescu/prezto which is a very nice alternative and much smaller.

^This. Prezto a git workflow makes personalization easily maintainable and deployment in new environments a snap.

Re: Bashstrap – For your OS X terminal

#29
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,…

Instead of that git command, I just default to running "tig": http://blogs.atlassian.com/2013/05/git-tig/ available everywhere it counts (arch, debian, homebrew)

Re: Bashstrap – For your OS X terminal

#30
post #15
post #13

This is quite sad, for a better alternative starter check out Paul Irish's which seems to be based on mathias's. The link is here: https://github.com/paulirish/dotfiles

Indeed, looks like Bashstrap is a fork of my dotfiles (without giving any credit, sadly). A lot of the commands, file structure, and even parts of the readme are a direct copy-paste.

It contains this description:

Bootstrap for your terminal. A quick way to spruce up OSX terminal. It cuts out the fluff, adds in timesaving features, and provides a solid foundation for customizing your terminal style. Based on Mathias Bynens epic dotfiles - https://github.com/mathiasbynens/dotfiles*

Or was that added after posting it here?

Post reply on HN