[HN Gopher] Mastering Bash and Terminal (2017)
___________________________________________________________________
Mastering Bash and Terminal (2017)
Author : gautamsomani
Score : 38 points
Date : 2021-12-08 10:23 UTC (2 days ago)
(HTM) web link (www.blockloop.io)
(TXT) w3m dump (www.blockloop.io)
| PeterWhittaker wrote:
| About two years ago, a change in work caused me to become a heavy
| git user. One of the most important changes I made to my bash
| setup was to change my prompt to multi line, detect whether I was
| in a git repo, include the branch in the prompt, and also include
| a summary of git status.
|
| Very handy! (The check also makes sure I am in the repo part of
| the repo, and not, say, in its .git folder or other non-working
| folders.)
| dang wrote:
| Discussed at the time:
|
| _Mastering Bash and Terminal_ -
| https://news.ycombinator.com/item?id=13400350 - Jan 2017 (180
| comments)
| klysm wrote:
| Surprised not to see a mention of "!!" here, I use that a decent
| amount
| Zababa wrote:
| I use "sudo !!" all the time, it's really useful.
| GloriousKoji wrote:
| I know zsh has all the new fancy stuff but keeping the bash shell
| as default for macOS would have made my life just a little bit
| easier.
| e40 wrote:
| Thankfully you can change it. First thing I do when setting up
| a new mac: install Homebrew and change my shell to the bash
| that comes in Homebrew.
___________________________________________________________________
(page generated 2021-12-10 23:01 UTC)