Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Powerline Fancy Theme #3503

Closed
wants to merge 8 commits into from
Closed

Powerline Fancy Theme #3503

wants to merge 8 commits into from

Conversation

guneysus
Copy link

Edit: Updated PR, and added complete _wd function that shows current folder.

image

I am using Ubuntu with Powerline patched fonts. If you are not able to see any icons below, please inform me.

Unicode icon codes
__HOME \uf015
__GITHUB \uf092
__BITBUCKET \uf172
__DROPBOX \uf16b
__WINDOZ \uf17a

_wd() {
  echo $(pwd | perl -pe "
   BEGIN {
      binmode STDIN,  ':encoding(UTF-8)';
      binmode STDOUT, ':encoding(UTF-8)';
   }; \
        s|/home/developer/repos/github.com|__GITHUB|g; \
        s|/home/developer/repos/bitbucket.org|__BITBUCKET|g; \
        s|/media/ahmed/OS|__WINDOZ|g;\
        s|^$HOME/Dropbox|__DROPBOX|g;\
        s|^$HOME|__HOME|g;\
        s|/([^/])[^/]*(?=/)|/\$1|g") | \
    sed \
        -e "s/__GITHUB/ /g" \
        -e "s/__BITBUCKET/ /g" \
        -e "s/__WINDOZ/ /g" \
        -e "s/__DROPBOX/ /g" \
        -e "s/__HOME/ /g" \
        -e "0,/^\//s// \//g" \
        -e "s/\///g"
}

@pickfire
Copy link

Why is there a windows icon?

@guneysus
Copy link
Author

Pointing to my Windows drive (C:\)

@robbyrussell
Copy link
Member

Thanks for this, but we're not currently accepting any new themes per our README.

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.

None yet

3 participants