is essential for writing code ;)
alias cb='xclip -selection clipboard'
alias cpath='echo -n "$(pwd)" | cb'
So you can quickly take the current directory and open it in another terminal emulator, or in say firefox.
But the best part is, you can use these from vim (this is unnecessary if you have vim compiled with +clipboard; use vim –version to check):
r ! cb -o
I had trouble getting it to work because I had the alias in ~/.zshrc, which is not read when zsh is run non-interactive. Changing to ~/.zshenv fixes.