Coder Social home page Coder Social logo

cmder-powershell-powerline-prompt's Introduction

cmder-powershell-powerline-prompt

Custom prompt (and other configurations) for PowerShell in Cmder.

Screenshot

Aliases

Store aliases in profile.d folder. To easily manage aliases, create each alias in its own file with extension .alias.ps1.
To store a private alias that you don't want to include in the repo, create it with extensions .private.alias.ps1.

There's a special alias for quickly jumping to favorite folders: goToFolder.alias.ps1.
Favorite folders are listed in the file goToFolder.config under profile.d.
This file is a comma-separated file that lists an alias to a folder along with its target.
For example: c sends me to ~\Code.
To use this command, I can simply type g c to go to ~\Code.

To add additional folder aliases, simply add additional entries in the goToFolder.config folder.
See profile.d\goToFolder.config.example for example.

Setting up files in Cmder config folder

It's better to store the files of this repo in its own folder so that it can be updated easily without messing up other files.
However, user profiles files must be reside in %CMDER%\config folder. We can use symlinks to get around that.

Create symlink to user-profile.ps1

new-item -path c:\bin\cmder\config\user-profile.ps1 -itemtype symboliclink -value <path to repo folder>\cmder-powershell-powerline-prompt\user-profile.ps1

Create symlink to profile.d folder

new-item -path c:\bin\cmder\config\profile.d -itemtype symboliclink -value <path to repo folder>\cmder-powershell-powerline-prompt\profile.d

Status & Contribution

I published this code because it's not nice to keep it to myself. I fix problems that I encounter, and try to fix problems that others encounter if I have time.
This code is provided with the timeless Works on my Machine gurentee.
You can also check out the pull requests page for contributions that didn't make back into this repo. These are fixes to problems I didn't encounter, or features not useful to me, but maybe useful to you.

People are very kind and contribute back fixes and improvements.
This section is to acknowledage their contributions and thank them. If you find their contributions helpful to you, please take the time to thank them directly.

I'd like to thank all who share their code with everyone for their time and effort.

cmder-powershell-powerline-prompt's People

Contributors

amreldib avatar lennybacon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cmder-powershell-powerline-prompt's Issues

Screenshot settings do not match provided config

Sorry quick question/issue:

The screenshot in your readme shows the Git branch and icon in a reverse color as the path foreground text color, yet the config simply matches the git info to the path info here:

 # Write branch symbol and name
        Write-Host " " $branchSymbol " " $status.Branch " " -NoNewLine -BackgroundColor $gitBackColor -ForegroundColor $gitForeColor

Do you happen to have the differences you used to render the Git info in reverse? I can take a pretty good guess that you perhaps just reversed the values but I wanted to ask if you had the actual code just so I could confirm.

TIA!

Color issue with new Cmder

I upgraded my installation of Cmder from 1.3.4 to 1.3.11, and now the powerline prompt is all blue in the background:

image

I'm looking to see if I can figure out the issue, but in the meantime I thought it might be best to open this.

Arrow symbol disconnect

Hi ,
After I set the file, it started working, but some problems like this:
image

How can i fix this ?

thank you.

Arrow symbol too long

Hi !
After i setup up files look like it working, but i has problems with arrow symbol if is not git folder.
How can i fix this ?

sorry for my english.

thank you.
screenshot_1

Fonts not rendering

I tried using this customization, and I followed the directions about installing fonts (I actually ended up installing all the powerline fonts. I also ensured that my ConEmu settings are as described in the README of your other repo:

image

Here's how my prompt comes out:

image

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.