Skip to content
/ pwsh-abbr Public

Expanding abbreviations for powershell - like fish shell

Notifications You must be signed in to change notification settings

g0t4/pwsh-abbr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Abbr module

This is my implementation of expanding aliases (or abbreviations as in fish shell), to compress keystrokes for common commands into aliases that expand, before execution, into the full command. I created this initially so when recording courses I wasn't hiding commands behind traditional aliases, so viewers can follow along.

Usage

Install-PSResource Abbr

Import-Module Abbr # optional, using `ealias` function triggers module to be loaded too

# examples
ealias gst 'git status'
ealias dcpsa 'docker container ps -a'
ealias dcri 'docker container run --rm -i -t'
ealias kgp 'kubectl get pods'

Visit my dotfiles repo for my private version _alias-helpers.ps1 of this module AND for hundreds of ealias examples across a variety of commands. By the way, most updates will happen in my private version and only occasionally merged back into this public module/repo, that way this version is stable.

Videos

Walkthrough

I also published a series of videos to explain how I set this up in zsh, powershell and fish shells:

About

Expanding abbreviations for powershell - like fish shell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published