Unix Tricks
11–20 of 166 posts
Re: Unix Tricks
#12One to add: Unfreezing terminal after pressing Ctrl+S by accident. Press Ctrl-Q.
Re: Unix Tricks
#13Ctrl-R is by far the most useful one for me.
Re: Unix Tricks
#14You know what else I hate? Typing in long commands in the Mac OS X terminal and then them wrapping weirdly. Especially when I hit the up arrow to go back in my terminal history.
Re: Unix Tricks
#15It's amazing how many years I've been using bash and I still have things to discover. Ctrl-x Ctrl-e nice tip!
Re: Unix Tricks
#16You know what I hate? My history isn't aggregated in real time across all my Mac OS X terminal windows. You know what else I hate? Typing in long commands in the Mac OS X terminal and then them wrapping weirdly. Especially when I hit the up arrow to go back in my terminal history.
zsh has `setopt inc_append_history` and `setopt share_history`. i am sure bash has something similar.
Re: Unix Tricks
#17You know what I hate? My history isn't aggregated in real time across all my Mac OS X terminal windows. You know what else I hate? Typing in long commands in the Mac OS X terminal and then them wrapping weirdly. Especially when I hit the up arrow to go back in my terminal history.
shopt -s histappend
export HISTSIZE=100000
export HISTFILESIZE=100000
export HISTCONTROL=ignoredups:erasedups
export PROMPT_COMMAND="history -a;history -c;history -r;$PROMPT_COMMAND"
I wish I could give credit to where I originally found this but it was ages ago.Re: Unix Tricks
#18You know what I hate? My history isn't aggregated in real time across all my Mac OS X terminal windows. You know what else I hate? Typing in long commands in the Mac OS X terminal and then them wrapping weirdly. Especially when I hit the up arrow to go back in my terminal history.
I solved this by adding the following line in my ~/.bashrc
shopt -s checkwinsize
Never tried on Mac OS X though, so I don't know if it works.Re: Unix Tricks
#19Ctrl-R is by far the most useful one for me.
This might be a zsh thing though.
Re: Unix Tricks
#20You might want to try out the more modern fish shell as well: http://fishshell.com/ It makes history searching even easier.