Giter Club home page Giter Club logo

powershell-plus's Introduction

Enhanced PowerShell Profile

A PowerShell profile that supercharges your workflow with Zoxide, oh-my-posh, Azure Predictor, intelligent aliases, and custom functions.

Table of Contents

Features

  • Effortless Navigation: Accelerate directory changes with Zoxide's smart directory jumping.
  • Stylish Terminal: Elevate your PowerShell prompt with oh-my-posh and the visually appealing Catppuccin Frappe theme.
  • Azure AI Assistance: Streamline Azure CLI interactions with the intelligent tab completion and suggestions powered by Az.Tools.Predictor.
  • Optimized Aliases: Execute common Git commands efficiently with short, intuitive aliases (gs, up, down, stat, br).
  • Handy Utility Functions: Simplify repository creation with the New-GitHubRepo function, leveraging the GitHub CLI.

Installation

Prerequisites

  • Zoxide: Follow installation instructions.
  • oh-my-posh: Follow installation instructions.
  • Az.Tools.Predictor: Install via PowerShell: Install-Module Az.Tools.Predictor.
  • GitHub CLI: Required for the New-GitHubRepo function.

Steps

  1. Download the Script Files:

    • Clone this repository or download the following files:
      • my_powershell_profile.ps1 (or your preferred name)
      • zoxide_init.ps1
      • catppuccin_frappe.omp.json
  2. Place Files: Place the downloaded files in an appropriate directory in your PowerShell profile path (find it by running $PROFILE).

  3. Edit Profile:

    • Open your PowerShell profile ($PROFILE) in a text editor.

    • Add the following lines of code to your profile:

      # Initialize zoxide
      Invoke-Expression (& { (zoxide init powershell | Out-String) })
      
      # Import zoxide configuration
      . "$PSScriptRoot\zoxide_init.ps1"
      
      # Initialize oh-my-posh
      oh-my-posh --init --shell pwsh --config "$PSScriptRoot\catppuccin_frappe.omp.json" | Invoke-Expression
      
      # Import Az.Tools.Predictor module
      Import-Module Az.Tools.Predictor
      
      # ... other profile settings

Usage

  • Zoxide:

  • Start typing a directory path or keywords, then tab to autocomplete with Zoxide's suggestions.

  • Use z to jump to previously visited directories.

  • Git Aliases: Refer to the alias descriptions within the script.

  • New-GitHubRepo Function: Use this function to create new GitHub repositories directly from your PowerShell environment.

Usage Screenshot

Customization

  • Explore further customization options for Zoxide, oh-my-posh, and the Azure Predictor.
  • Modify or create new aliases and custom functions in your profile.

Customization Screenshot

Dependencies

Credits

Credit to the creators of Zoxide, oh-my-posh, and Azure Predictor for their awesome tools.

Feel free to copy and adapt this PowerShell profile to suit your needs!

powershell-plus's People

Contributors

bmills20 avatar

Watchers

 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.