Skip to content

Instantly share code, notes, and snippets.

@timotheemoulin
Created September 30, 2019 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timotheemoulin/1d48ac23dc9c9f4b3b67558a7239cc4f to your computer and use it in GitHub Desktop.
Save timotheemoulin/1d48ac23dc9c9f4b3b67558a7239cc4f to your computer and use it in GitHub Desktop.
Powershell custom functions
# Powershell Custom Functions
# Timothée Moulin
#
# Change directory to the root workspace directory
Function tim-goto-workspace-tim {
cd ~/www
ls
}
Set-Alias -Name www -Value tim-goto-workspace-tim
# Change directory and show the files
Function tim-cs ([String] $directory = '') {
cd $directory
ls
}
Set-Alias cs tim-cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment