Giter Club home page Giter Club logo

powershell's Introduction

PowerShell

This repo is where I save many of my personal PowerShell files. This includes personal PowerShell scripts, modules, and profiles, and other environment settings. Some Python files that are used to setup/modify my environment are also saved in this repo.

Symbolic links

Symbolic links allow me to have files inside my repo that are also accessible outside of the repo. For example my PowerShell profile. This also allows me to have one PowerShell profile for both PowerShell Core (7.x) and PowerShell (5.x). To setup Symbolic links so that they work with get keep the base file inside the git repo and link that file out to the other locations.
Instructions on how to create symbolic

Commands

Windows PowerShell 5.x

$userFolder = Resolve-Path "~"
$myDocs = [environment]::GetFolderPath("MyDocuments")
new-item `
    -ItemType SymbolicLink `
    -Path (Join-Path $myDocs WindowsPowerShell) `
    -Name profile.ps1 `
    -value (Join-Path $userFolder "programming\powershell\environment\powershell\profile\profile.ps1")

Windows PowerShell Core (6.x)

$userFolder = Resolve-Path "~"
$myDocs = [environment]::getFolderPath("MyDocuments")
new-item `
    -ItemType SymbolicLink `
    -Path (Join-Path $myDocs PowerShell) `
    -Name profile.ps1 `
    -value (Join-Path $userFolder "programming\powershell\environment\powershell\profile\profile.ps1")

Virtual environments

I have created my own homebrew solution that I plan to keep using. However, if I ever want to switch back to Virtualenv Wrapper here is the info:
VirtualEnvWrapper

powershell's People

Contributors

pjmcnally avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.