No description provided.
use command pwd instead of pwd
I wasn't familiar with command - according the the docs:
Run command with args suppressing the normal shell function
lookup. Only builtin commands or commands found in the PATH are
since it still looks in PATH, I feel like I'm missing something ... is it that it will always prefer a builtin to something in PATH?
I'm inclined to merge this, but explaining why this is helpful/neccessary to you would be nice for me :)
This might be useful when user defined their own pwd alias/function. I defined an alias for pwd in my Mac:
alias pwd='command pwd | tee >(tr -d "\n" | pbcopy)'
Besides the buildin pwd functionality, it also pipe the current directory string to pbcopy (paste board copy), so that every time I type pwd in the terminal, the directory string gets copied into my paste board, I can then paste in other applications. Using `command pwd' just to make sure z use builtin pwd (/bin/pwd) instead of whatever available in the shell environment.
It shouldn't break anything, although I only test on my machine...
Ahh, makes sense - command pwd would certainly not use an alias.
It's a bash builtin, and looks to work in zsh too. I'll do another round of thinking about any possible drawbacks (i can't think of any) and merge this soon.
Cool. Thanks for this great tool :)