Live data from Hacker News

Love Your Terminal

blog.andrewhays.net

71–80 of 137 posts

Re: Love Your Terminal

#72
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.

I carry Emacs in Linux and Windows versions, along with xmodmap scripts to make caps lock a control key and switch it back again, on a flash drive just for that reason --- then I have the necessities available on every machine I sit down in front of.

Servers are a different story, but the ones I work with are all running Linux and have vi, which will do.

Re: Love Your Terminal

#74
post #2

use tmux for multiple screens and ditch that xorg garbage.

These days II mostly use tmux windows/panes instead of yakuake, but yakuake is still useful)terminal dropdown/retract or when my copy/paste breaks in tmux again(doesn't work well with mouse options).

Re: Love Your Terminal

#77
post #57

Nice guide. For those on Windows, just move to Powershell if you are still using the plain old terminal. Sure it can be a bit verbose, but it is surely way better, specially for the cases when doing Windows specific projects.

Second to this, I don't recommend using the built-in script editor. It's slow as all hell and not that helpful when learning how to write your first scripts. Instead, I recommend the Script Editor that comes with PowerGUI. It has IntelliSense (sort of), which is kind of a crutch in the beginning but displays the sheer amount of power Powershell has.

Re: Love Your Terminal

#78

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

Re: Love Your Terminal

#79
post #76

I wrote a little script to display the battery status (in a nice format) that should work on Bash & ZSH. I use it on my Tmux bar too... Check it out :) https://github.com/Goles/Battery

Would have loved it, if worked on linux too.

Re: Love Your Terminal

#80
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'…

My prompt is usually the system default, because I work across multiple systems, some of which don't even have bash (let alone zsh), and changing it seems unnecessary. 'wi' is just there to remind me where I am once in a while.

My general philosophy is to deal with whatever is the default and not become reliant on customisations because other systems I'll be required to use won't have any of them set up.

Post reply on HN