My favorite command is 'say'. You can do all kinds of silly voices. Try this out: say hello -v Good
wc -l 31–40 of 243 posts
My favorite command is 'say'. You can do all kinds of silly voices. Try this out: say hello -v Good
wc -l What always surprises me is that so many don't know or use the directory stack commands, pushd and popd. I'll admit I was also ignorant of them until something like 2005, but once I learned of them I switched and never looked back. Now I can't see someone write or type "cd" without a little bit of a cringe.
Many people love them, but I never got the hang of pushd and popd. These days, I use a CDPATH and z[1]. I also use zsh, which supports handy little things such as cd - (cd to previous directory). If you haven't tried it, I highly recommend z. It's impossible to Google for, but it's oh-so-convenient. 1. https://github.com/rupa/z
It seems odd to have open /Applications/Safari.app/ as an example, when open -a safari does the same thing.
My co-workers and I used to ssh into the iMacs of non-technical users in our office and have a good laugh from a nearby room.
It seems odd to have open /Applications/Safari.app/ as an example, when open -a safari does the same thing.
cmd+space safariThe Linux equivalent of `open` is `xdg-open`. I usually alias it to `op`, since `/bin/open` exists.
Another bit of terminal-sugar for OS X users:
alias lock='/System/Library/CoreServices/"Menu Extras"/User.menu/Contents/Resources/CGSession -suspend'
And most Linux users: alias lock='gnome-screensaver-command -l'
If you find yourself accidentally triggering hot corners, the lock command is your savior.I've sorta-documented this stuff over the years, but only for my own memory. https://gist.github.com/ggreer/3251885 contains some of my notes for what I do with a clean install of OS X. Some of the utility links are dated, but fixing the animation times really improves my quality of life.
What always surprises me is that so many don't know or use the directory stack commands, pushd and popd. I'll admit I was also ignorant of them until something like 2005, but once I learned of them I switched and never looked back. Now I can't see someone write or type "cd" without a little bit of a cringe.
What always surprises me is that so many don't know or use the directory stack commands, pushd and popd. I'll admit I was also ignorant of them until something like 2005, but once I learned of them I switched and never looked back. Now I can't see someone write or type "cd" without a little bit of a cringe.
$ pwd
/tmp
$ mkdir -p a/b/c
$ ( cd a/b/c ; pwd )
/tmp/a/b/c
$ pwd
/tmp