Live data from Hacker News

Love Your Terminal

blog.andrewhays.net

91–100 of 137 posts

Re: Love Your Terminal

#92
post #24
post #14

Earlier quoted context omitted.

That's actually why I stopped tweaking things to hell and back, losing my config's was too painful. I usually just go for basic colour tweaks these days. It also makes me more portable and productive when I am using a new or someone else's machine.

I used to take this approach. One day I found I had no choice but to remap CapsLock as a second Ctrl key because my little finger was in constant agony otherwise. I've never had a second's trouble from the finger since then, but you should see me try to type on other peoples' computers now. I TEND TO WRITE IN ALL-CAPS A LOT BY ACCIDENT! So for me there's no longer much point in caring about portability, and I have al…

I've run into the same issues. My solution is to reach a sort of balance between portability and usability.

My xmodmap + XMonad config is designed to be reproducible on Windows via AutoHotkey and OS X via SizeUp + PCKeyboardHack, that way I'm always in my home environment no matter the OS!

Re: Love Your Terminal

#93
post #65

Earlier quoted context omitted.

A whole extra line above the working prompt? That just seems unnecessary. If you need that info at any particular moment, make a command. I used to have one called wi (short for Where am I?) that threw out similar info. But displayed constantly? Yuck!

> A whole extra line above the working prompt? Because it's frequently useful, and thus the tradeoff of a bit of space for simplicity, speed and familiarity is worth it. > If you need that info at any particular moment, make a command. Right, so your prompt is composed of nothing but the hardcoded character `>`? (you obviously don't need the $/# toggle as you can use `whoami`, and you don't need the previous command'…

> Right, so your prompt is composed of nothing but the hardcoded character `>`

Hey that's what mine is! Actually it is simply the ')' character. I went from full on prompt-porn to nothing. For the most part this was just to see how much of the prompt I really needed on a daily basis (how often do I really type git branch because I don't know what branch I'm on, how often do I type pwd... stuff like that). Turns out I rarely use those commands, but to each their own.

Re: Love Your Terminal

#94
post #47

Earlier quoted context omitted.

I used to be all about portability, too. Worse, I was worried that other people needed to be able to work on my computer. So no Vim or Emacs, and always keep things simple. You know what? I don't care any more. My computer is my computer. It does not need to work for other people and I don't need to work on other people's computers much. My Emacs loads many plugins, my Visual Studio is using ViEmu, I replaced my Find…

Its not so much about others as I don't want to spend 3 hours setting up e very machine I touch, ie servers, borrowed machine etc.... I'm just as productive now (after a month of adjustment) but without the setup time.

Setup time got you down? There are plethora of dotfiles projects on github that already have easy scripted installation.

http://dotfiles.github.com/

Re: Love Your Terminal

#95
post #88
post #29

Whatever the terminal you are using, configure it so that it doesn't eat your alt/ctrl key and then learn readline bindings.

Kinda weird that the author mentions Ctrl-R but not readline. History searching actually works for everything that supports readline, e.g. bash, ipython, psql, henplus, etc, although personally I use page-up / page-down with: "\e[5~": history-search-backward "\e[6~": history-search-forward The terminal experience becomes crappy when there is no readline support, e.g. everything on Windows, sqlplus, db2, etc. When the…

> I use page-up / page-down with

I use ctrl-r because it is easier to type.

> experience becomes crappy when there is no readline support, e.g. everything on Windows, sqlplus, db2, etc.

If you have rlwrap, you can generally do `rlwrap -r app-that-doesn't-play-well`

Re: Love Your Terminal

#96
The prompt style I use was invented, IIRC, by one of the Bell Labs Unix guys in the early days of windowing terminals.

: text;

Why? Because you can select entire lines (triple-click in most terminal emulators) and paste them directly into another shell. “:” is equivalent to true(1), and it ignores its arguments, the text.

(In my case, the text is the base of the host name, but anything compatible with shell quoting rules will work.)

Re: Love Your Terminal

#97
post #94
post #47

Earlier quoted context omitted.

Its not so much about others as I don't want to spend 3 hours setting up e very machine I touch, ie servers, borrowed machine etc.... I'm just as productive now (after a month of adjustment) but without the setup time.

Setup time got you down? There are plethora of dotfiles projects on github that already have easy scripted installation. http://dotfiles.github.com/

Homesick is another good one

https://github.com/technicalpickles/homesick

Re: Love Your Terminal

#98

This seems like a good place to once again plug fish[1]. Exactly those goodies I want in a shell and the autocomplete is so convenient I no longer know how I lived without it. And there's all the other cruft removal. [1] http://ridiculousfish.com/shell/

You can get fish syntax highlighting in zsh by installing zsh-syntax-highlighting ( https://github.com/zsh-users/zsh-syntax-highlighting ). I prefer just enabling it in prezto though (which is a fork of oh-my-zsh that is a lot lighter weight and more modular https://github.com/sorin-ionescu/prezto )

Re: Love Your Terminal

#99

I am just starting out and what to learn how to get the most out of my terminal. I have zsh installed what is the best site/book in learning how to unlock its full power?

I would recommend getting used to BASH first if you're just starting out. Some people here are zsh zealots, but if you plan to work on remote systems, you're going to encounter BASH. You'll also appreciate whatever fancy benefits zsh offers more. http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html A good start for leveraging common bash features. You'll find a lot of the ckncepts , if not syntax, useful in any *sh

brilliant. Thank you

Re: Love Your Terminal

#100
I typically SSH into my boxes, but it isn't really a shell - you don't have dynamic fonts/colors per application and stuck to 256 colors.

Maybe I will have to run a linux distro in order to share the love.

Post reply on HN