After reading this I was interested how to make alias with variable, so I googled it and find out you can use functions since aliases do not support variable.
Put this inside function in your .bashrc or .zshrc file:
mtd () { mv "$@" /path/to/documents/; }
To move file.md to documents just use:
file.md
Or... you can put the function in an alias:
alias mtd='mvtd () { mv "$@" /path/to/documents/; }; mvtd;'
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
After reading this I was interested how to make alias with variable, so I googled it and find out you can use functions since aliases do not support variable.
Put this inside function in your .bashrc or .zshrc file:
To move file.md to documents just use:
Or... you can put the function in an alias: