I have added the following alias to my .zshrc:
alias pwdc="echo -n $PWD | xclip -selection clipboard"
it seems the present working directory is not getting updated, when I move to a different directory. I have tried this too:
alias pwdc="echo -n `pwd` | xclip -selection clipboard"
Can somebody please explain me what am I doing wrong? any suggestion will be helpful, thank you!