https://github.com/spmason/powershell-profile
A public clone of my powershell profile bits & pieces
https://github.com/spmason/powershell-profile
Last synced: 4 months ago
JSON representation
A public clone of my powershell profile bits & pieces
- Host: GitHub
- URL: https://github.com/spmason/powershell-profile
- Owner: spmason
- Created: 2010-05-13T14:17:34.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2011-02-03T09:49:07.000Z (over 14 years ago)
- Last Synced: 2024-11-27T12:36:44.110Z (7 months ago)
- Homepage:
- Size: 122 KB
- Stars: 8
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - spmason/powershell-profile - A public clone of my powershell profile bits & pieces (Others)
README
My PowerShell Profile
===========This is my personal powershell profile that I clone between various Windows machines I work on
** Important: Copy "environment.example.ps1" to "environment.ps1" and edit the paths inside before use **
The profile imports posh-git, posh-hg and posh-svn to give auto-complete etc for working copies & clones
The profile also ensures that ssh-agent is running so you avoid having to type in your password every time you push/pull (ssh should be in your PATH for this to work)
I also add a few useful commands:
* gs -> "git status"
* n [path] -> "notepad"
* sudo [name] -> launch process as Administrator (in new window)
* hosts -> edit hosts file in notepad (will prompt for admin approval)
* dev -> jump to "Development" directory where you checkout your projects - tab-completion is provided for the folders under this dir (need to configure this in environment.ps1)
* dropbox -> jump to dropbox (need to configure this in environment.ps1)
* start-mongo -> Run MongoDb instance (need to configure this in environment.ps1)Installation (Using git & powershell)
--------1. cd ~\Documents
1. git clone git://github.com/spmason/powershell-profile.git WindowsPowerShell
1. cd WindowsPowerShell
1. git submodule init
1. git submodule update
1. cp environment.example.ps1 environment.ps1
1. notepad environment.ps1Edit & save the file & restart the powershell console