Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/colinwilliams91/profiles
Powershell Profile Scripts for Git and .Net CLI tab-key autocomplete, Git status, and some cute colors
https://github.com/colinwilliams91/profiles
Last synced: 11 days ago
JSON representation
Powershell Profile Scripts for Git and .Net CLI tab-key autocomplete, Git status, and some cute colors
- Host: GitHub
- URL: https://github.com/colinwilliams91/profiles
- Owner: colinwilliams91
- Created: 2023-12-23T05:23:15.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-17T03:21:29.000Z (2 months ago)
- Last Synced: 2024-12-04T01:33:57.346Z (about 2 months ago)
- Language: PowerShell
- Homepage:
- Size: 35.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - colinwilliams91/profiles - Powershell Profile Scripts for Git and .Net CLI tab-key autocomplete, Git status, and some cute colors (PowerShell)
README
# Powershell Profile Scripts
_I made these scripts to customize the Windows Powershell Terminal_\
_Each script will also list what they achieve at the top of the file_\
_PS has basically no Tab autocomplete which is lame..._\
_These scripts will incrementally fix this_## Purpose
- Git CLI autocomplete
- Dotnet CLI autocomplete
- Git tracking; status, remote, branch, and commit info
- Implement `touch` fn like from Bash
- Cute colors 😽## Scripts
### `sans_posh_git.profile.ps1`
- Template from user tamj0rd2 [Stack Overflow](https://stackoverflow.com/a/44411205/20575174)
- _Somewhat_ achieves Posh-Git Git CLI Status :heavy_check_mark:
- _Does not_ enable tab autocomplete for Git CLI :x:
- _Does not_ enable tab autocomplete for Dotnet CLI :x:
- _Implements_ a cute color array and selects 2 random colors for command line on ps launch (`prompt()`) 🦝### `posh_git_dev.profile.ps1`
- Template for install Posh-Git Module I use for Dev work on my Home machine [API Documentation](https://github.com/dahlbyk/posh-git/wiki/Customizing-Your-PowerShell-Prompt#v1x---customizing-the-posh-git-prompt)
- _Implements_ Posh-Git for all Git tracking :heavy_check_mark:
- _Does_ enable tab autocomplete for Git CLI :heavy_check_mark:
- _Does_ enable tab autocomplete for Dotnet CLI :heavy_check_mark:
- _Implements_ a cute color array and selects 2 random colors for command line on ps launch (`prompt()`) 🐯## To Use
- Create the file: `code $PROFILE.AllUsersAllHosts`1
- Install posh-git:
- first time install: `PowerShellGet\Install-Module posh-git -Scope CurrentUser -Force`
- if installed, update: `PowerShellGet\Update-Module posh-git`
- Copy the contents of the `*.profile.ps1` file you choose into newly created `profile.ps1`
- Update the `Set-Location C:\Users\User\Dev` line to your Home directory (or leave it commented out)1**There are four different levels of profile persistence you can create:**
- If you want your profile script available in all your PowerShell hosts (console, ISE, etc) run this command `code $PROFILE.CurrentUserAllHosts`
- If you want your profile script available in just the current host, run this command `code $PROFILE.CurrentUserCurrentHost`
- If you want your profile script available for all users on the system, run this command `code $PROFILE.AllUsersAllHosts`
- If you want your profile script available for all users but only for the current host, run this command `code $PROFILE.AllUsersCurrentHost`_See [step 2 of these docs](https://github.com/dahlbyk/posh-git?tab=readme-ov-file#step-2-import-posh-git-from-your-powershell-profile) for more info_