1
0
I'm looking to set up an alias for my work directory, which can change as I change context, and I was trying to find something that was short enough to stand in as a replacement for ~
. I'd be tickled pink if it's possible to have a one character name for the alias. Like cd %
or something? Assigning an alias to %
doesn't seem to work though.
I've tried looking for requirements for variable names, but I couldn't find any. I don't know if this is a shell built-in, I can't have been the first person to want to do this.
I'm using zsh, but I tagged bash in case it's something possible in both shells.
Does the alias work for a single letter like
x
? or what about a number1
? – brandonscript – 2013-10-30T17:32:28.207