Skip to content

Conversation

@the-sudipta
Copy link

Summary

This pull request introduces updates to the original PowerShell profile to enhance usability, maintainability, and support for multi-line commits in Git. The goal is to keep the core functionality intact while adding useful improvements for end-users.

Changes Made

  1. Multi-line Commit Support

    • Updated Git commit handling in the profile to allow multi-line commit messages.
    • Ensures users can write detailed commit messages without losing formatting or breaking the prompt.
  2. Key Binding Enhancements

    • Added or refined key bindings for common actions (e.g., copy/paste, history navigation) to streamline workflow.
    • Ensures compatibility with PSReadLine and Oh-My-Posh setups.
  3. Prompt & Display Improvements

    • Adjusted the prompt to better display Git branch status and staged changes.
    • Minor formatting tweaks to improve readability of multi-line commands.
  4. Error Handling & Stability

    • Fixed potential errors related to undefined variables or missing modules.
    • Improved checks to prevent the profile from breaking in edge cases (e.g., missing Git repository).
  5. Documentation & Comments

    • Added comments to explain new sections, particularly for multi-line commit handling.
    • Helps future contributors understand why changes were made.

Testing

  • Tested in Windows 11 PowerShell 7.3.
  • Verified multi-line commits in Git, including commit messages with line breaks.
  • Confirmed no regressions in core prompt and Oh-My-Posh functionality.

Motivation

These updates are intended to enhance daily productivity for developers using PowerShell by improving commit workflow and ensuring the profile is more resilient and easier to understand.

Notes for Review

  • No breaking changes to the original profile.
  • Focused on backward compatibility with existing setups.

the-sudipta and others added 16 commits October 16, 2024 00:40
Uploading my  own terminal functions like add, del, move. Removing zoxide.
Uploading 3 functions.
1. Show Hidden Folders
2. Hide Folders/Files
3. Unhide Folders/Files
Changes made in ls-hidden function
This is for testing git SSH only
Uploading Aliases for Github Copilot
Uploading 2 Functions to get all the installed items in the PC
Uploading Some terminal Functionss
Uploading Show-Tree function that can show the files and folders in a tree structure.
Uploading new function called write-file FILE_NAME_HERE. Now user can open any file inside the sublimeText through this
Now this git-push function will show the Commit type's Description also
Implement a PowerShell script to download YouTube videos using yt-dlp, allowing users to specify the video URL and save location. Ensure proper error handling, progress display, and user-friendly prompts for a seamless downloading experience.
Improved PowerShell profile script to support clean, readable multi-line Git commit messages. This refactor enhances usability, reduces syntax errors, and provides better formatting when writing detailed commit descriptions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant