Home
Head's Up: I'm in the middle of upgrading my site. Most things are in place, but there are something missing and/or broken including image alt text. Please bear with me while I'm getting things fixed.

Today I Learned Quickly Copy a Directory Path

I add this to my ` .zshrc ` , ` .bashrc ` , etc... files to quickly copy directory paths from the command line :

alias pwc="pwd | tr -d '\n' | pbcopy"

It runs ` pwd ` , clips the newline off then sends it to the pasteboard (aka clipboard).

Super handy.

_ Side note : "pwd" stands for "print working directory". Using "cwd" would make more sense grammatically (i.e. "copy working directory") but the keystrokes are cumbersome. Hence, I use "pwc". Your mileage may vary. Season to taste. _