Created
January 2, 2022 11:36
-
-
Save tom-combet/cf416de07a615c000a69da5ea44b1e86 to your computer and use it in GitHub Desktop.
Create a CLI alias
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "alias your-alias='<your-command>'" >> ~/.bash_aliases | |
source ~/.bash_aliases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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