Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

set alias in powershell

#For Windows PowerShell
set-alias -name <alias_name> -value <command>
#<alias_name> is the new alias name you want to set.
#<command> is the command you want to alias.
#NB: this is temporal and will not work when powershell is reboot.
#To make it permanent, add it to PowerShell Profile.ps1 file.
Comment

powershell alias

# On your profile.ps1 file
# if you don't have it yet, just run code $PROFILE to create and edit it (with vscode)

function NpmRunDev {  
  npm run dev
}

Set-Alias nrd NpmRunDev
Comment

create alias in powershell permanently

// create a profile.ps1 file to set aliases
notepad $((Split-Path $profile -Parent) + "profile.ps1")

// example aliases (opens notepad when you type `edit` in console)
Set-Alias edit notepad.exe

// example aliases (opens notepad when you type `edit` in console)
Set-Alias edit1 "C:Program FilesWindows NTAccessorieswordpad.exe"
Comment

set alias for directory in powershell

#For Windows PowerShell
function <alias_name> {cd "C:Users..."}
#We use `function` and not 
set-alias -name <new_alias> -value <command>
#because cmdlets(cd) don't work in set-alias -value.
#NB: this is temporal and will not work when powershell is rebooted.
#To make it permanent, add it to PowerShell Profile.ps1 file.
Comment

powershell alias setting

set-theme [some themes]
Comment

PREVIOUS NEXT
Code Example
Shell :: install visual studio on ubuntu command line 
Shell :: ionic icon dimensions 
Shell :: copying folders in git bash 
Shell :: bash index of string 
Shell :: shutdown shortcut ubuntu 
Shell :: babel source maps 
Shell :: move repository from bitbucket to github 
Shell :: create file on terminal or git 
Shell :: scp copy directories 
Shell :: pytest_check 
Shell :: generate table of content in readme.md 
Shell :: installing dbeaver 
Shell :: Check path file exist 
Shell :: install nginx on ec2 
Shell :: start elasticsearch on aws 
Shell :: expose deployment k8 
Shell :: what to do with the git config 
Shell :: github swaggo 
Shell :: count file linux 
Shell :: failed: Invalid argument 
Shell :: dokcer remove image 
Shell :: open rdp port windows 10 using command line 
Shell :: touch 
Shell :: mac terminal curl trim response 
Shell :: create a bootable usb drive ubuntu 
Shell :: github how to add ssh key 
Shell :: install babel language 
Shell :: Stderr: VBoxManage.exe: error: UUID 
Shell :: how to upen image in kali linux 
Shell :: How can i get batch files to run through the new window terminal 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =