All Questions
3
questions
2
votes
2
answers
956
views
Why do I have to use this command twice to execute it?
I made an alias alias goto="cd $@ && source ~/.zshrc" and it works, but only if I execute it twice. Even after I execute it twice in one shell, and if I want to move to another dir, ...
4
votes
1
answer
3k
views
How to declare some aliases dynamically in zsh?
I would like to declare a few shortcut commands to switch between my various coding projects, so I have come up with the following script.
projects=$(ls -d ~/Workspace/*/)
prefix="/Users/myuser/...
3
votes
2
answers
1k
views
How to create hyphen alias for zsh?
I am using zsh and oh-my-zsh on Ubuntu.
To change into the recent directory in the past there was an alias set to - which is the same as cd -. Somehow the alias disappeared at my machine. This might ...