Search results
12 kwi 2020 · From a WSL shell, open your WSL home in Windows Explorer: explorer.exe ~. Look for the .bashrc file and open it with a plain text editor like Sublime Text, then add the following line to the bottom of it: alias lsd="cmd.exe /c '<YOUR CMD COMMAND>'".
To Add a Permanent Alias: Goto Terminal (I'm using git bash for windows). Type $ vim ~/.bashrc and hit Enter (I'm guessing you are familiar with vim). Add your new aliases (For reference look at the snippet below). #My custom aliases alias gpuom='git push origin master' alias gplom='git pull origin master' Save and Exit (Press Esc then type :wq).
How do I create aliases on Windows command line, or override existing commands with a script?
25 cze 2024 · Here’s a quick guide on how to set up and manage aliases in Windows Subsystem for Linux (WSL2): Creation; Making Aliases Permanent; Finding Existing Aliases; Deleting Aliases; Creation...
This is a simple Windows batch script and bash command wrapper that allows you to pass commands to your WSL (Windows Subsystem for Linux) from Windows and adds a few sweet features like aliases and automatic mounting.
13 lut 2021 · The basic anatomy of creating an alias is: alias <your command>='<something you want to do>' (Note lack of spaces between the command and thing you want to do – spaces matter at the command-line.) Example: alias project='cd /mnt/c/Projects/PaleoLakeElevations/scripts/r '.
26 wrz 2019 · It is common in Linux to define aliases and/or environment variables within login profiles to set default parameters for commands you use frequently (e.g. alias ls=ls -AFh or export LESS=-i).