5 ms·
Bashstrap – For your OS X terminal
- r4d2 13y agoThis is just some fancied up bashrc. A (much) better alternative would be to install zsh with oh-my-zsh (https://github.com/robbyrussell/oh-my-zsh https://github.com/robbyrussell/oh-my-zsh).
- barryclark 13y agoYep! I did take a look at oh-my-zsh but decided not to go that route, I didn't like the aesthetic of many of the themes and Bash is capable of a lot of zsh's features now.
- chanced 13y agoCame here to say the same. +1 to oh my zsh
- atmosx 13y agozsh is broken and breaks X times per year. It's annoying, really. I'm tired of wasting time configuring terminals time and again because the new version of XYZ package is broken. Anyone who does not enjoy spending huge amounts of time trouble-shooting on the terminal should use bash. It's the default in most distributions, it supports all major features a modern shell should.
- Sheepshow 13y agoNever ran into any problems with vanilla zsh on Arch, Debian, or OSX -- just pacman -Ss zsh || apt-get install zsh || brew install zsh. What kind of problems did you run into?
- nichochar 13y agoOh My ZSH works very well for me. Love it
- dmtroyer 13y ago+1 for Oh My Zsh. Has plugins for git, sublime_text, etc, and great support.
- fredoliveira 13y agoYou guys may want to check out prezto too: https://github.com/sorin-ionescu/prezto https://github.com/sorin-ionescu/prezto
- toupeira 13y agoCalling this "Bootstrap for Bash" is pretty disingenuous, all I can see are a bunch of configuration files that are very basic and hard-coded to your own usage.
- k4rthik 13y agobash alternate to oh-my-sh : https://github.com/revans/bash-it https://github.com/revans/bash-it. https://github.com/mathiasbynens/dotfiles https://github.com/mathiasbynens/dotfiles has a pretty good collection of dotfiles repos mentioned in its readme.md. There are few more at http://dotfiles.github.io/ http://dotfiles.github.io/
- barryclark 13y agohttps://github.com/mathiasbynens/dotfiles https://github.com/mathiasbynens/dotfiles is fantastic, I refer to that a lot.
- mathias 13y agoActually, it looks like Bashstrap is a fork of https://github.com/mathiasbynens/dotfiles https://github.com/mathiasbynens/dotfiles. A lot of the commands, file structure, and even parts of the readme are a direct copy-paste…
- barryclark 13y agoI just added credit into the repo description. Thanks Mathias!
- jsmeaton 13y agoI thank you for that repo. I forked, customised, and occasionally cherry-pick from dotfiles, and it has improved my everyday terminal use significantly.
- dylandrop 13y agoThe one area where I see this lacking is git autocomplete. Also personally I wouldn't use the `s .` command for Sublime... maybe you could make some of the aliases configurable rather than default?
- clarry 13y agoIt cuts out the fluff To me it looks like the exact opposite.
- jpttsn 13y agoI had the same feeling. I already know my username, and if there's a directory name before my prompt the "in" is implicit.
- tekromancr 13y agoDo 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?
- josso 13y agoWhich is why you setup your shell (bash/zsh/fish) to check for the existence of $SSH_CLIENT. If it exists, you can assume you're connecting via SSH and add username and hostname to $PS1.
- gwu78 13y agoYou are not alone. I'd go further and say anyone who prefers Bash is someone who does not mind a little or even a lot of fluff.
- aremm 13y agoThis 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 https://github.com/paulirish/dotfiles
- mathias 13y agoIndeed, 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.
- Udo 13y agoIt 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* https://github.com/mathiasbynens/dotfiles* Or was that added after posting it here?
- mathias 13y agoThat was added after posting it here. https://news.ycombinator.com/item?id=6951288 https://news.ycombinator.com/item?id=6951288
- poolpool 13y agoSince everyone likes mentioning oh-my-zsh I figured I would mentioned prezto https://github.com/sorin-ionescu/prezto https://github.com/sorin-ionescu/prezto which is a very nice alternative and much smaller.
- rayshan 13y ago^This. Prezto a git workflow makes personalization easily maintainable and deployment in new environments a snap.
- krrrh 13y agoI 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 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.
- _frog 13y agoAgreed. 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.
- hibbelig 13y agoI tried it, then went back to bash. I'm not really sure why. I also tried zsh some time ago, then went back to bash. I rather like fish, it's a cool construct, and I can appreciate its features. But somehow I found that I didn't really gain anything from them, so I went back to bash. I honestly admit I'm not sure why -- fish is really cool, and zsh is really cool, but I didn't adapt the new features to my day to day usage.
- kika 13y agoClicked 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.
- tsetse-fly 13y agoWhat's wrong with "ls -l (which cmd)"?
- dinedal 13y agoI'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 http://d.pr/i/B9LT
- aktau 13y agoInstead of that git command, I just default to running "tig": http://blogs.atlassian.com/2013/05/git-tig/ http://blogs.atlassian.com/2013/05/git-tig/ available everywhere it counts (arch, debian, homebrew)
- barryclark 13y agoThat's awesome. Will definitely be adding it in, thanks!
- caiob 13y agoI like Thoughtbot's dotfiles. https://github.com/thoughtbot/dotfiles https://github.com/thoughtbot/dotfiles
- twolfson 13y agoIf you are interested in just the prompt, checkout https://github.com/twolfson/sexy-bash-prompt https://github.com/twolfson/sexy-bash-prompt
- devNoise 13y agoThe 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.
- Qerub 13y agoFor the record: COMMAND_MODE=unix2003 is already default in Terminal(.app), but it should definitely be set for iTerm.
- john2x 13y agoWhere can I find a list of those unicode prompts?
- barryclark 13y agoI usually pull from there tables - http://en.wikipedia.org/wiki/Unicode_symbols http://en.wikipedia.org/wiki/Unicode_symbols
- sneak 13y agoWhat'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?
- Karunamon 13y ago>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?
- gauravarwalr 13y agoI have done something similar for bash, but its portable across iTerm and Terminal app. https://github.com/gauravagarwalr/Script-BackUp/tree/master/OS%20X/bash_scripts https://github.com/gauravagarwalr/Script-BackUp/tree/master/...