Skip to content

Instantly share code, notes, and snippets.

@sapslaj
Last active August 29, 2015 14:28
Show Gist options
  • Select an option

  • Save sapslaj/a9bfd7dc65cdc729cd9a to your computer and use it in GitHub Desktop.

Select an option

Save sapslaj/a9bfd7dc65cdc729cd9a to your computer and use it in GitHub Desktop.
A ZSH plugin with some common aliases
_PLS_REMOVE="rm -rf"
alias rmrf=_PLS_REMOVE
alias del=_PLS_REMOVE
alias delete=_PLS_REMOVE
alias remove=_PLS_REMOVE
_PLS_COPY="cp -R"
alias copy=_PLS_COPY
alias cpr=_PLS_COPY
_PLS_MOVE="mv -R"
alias mvr=_PLS_MOVE
alias move=_PLS_MOVE
if [ "$OVERLOAD_ALIASES" = "true" ]; then
alias rm=_PLS_REMOVE
alias cp=_PLS_COPY
alias mv=_PLS_MOVE
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment