Skip to content

Instantly share code, notes, and snippets.

@tom-combet
Created January 2, 2022 11:36
Show Gist options
  • Save tom-combet/cf416de07a615c000a69da5ea44b1e86 to your computer and use it in GitHub Desktop.
Save tom-combet/cf416de07a615c000a69da5ea44b1e86 to your computer and use it in GitHub Desktop.
Create a CLI alias
echo "alias your-alias='<your-command>'" >> ~/.bash_aliases
source ~/.bash_aliases
Add-Content "$Home\Documents\profile.ps1" `
"`nfunction your-alias { cmd /c <your-command> $args }"
. "$Home\Documents\profile.ps1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment