mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-13 03:12:21 +01:00
Home, Github, bitbucket, dropbox and windoz folder icons
This commit is contained in:
parent
43b87a877c
commit
46a5667884
1 changed files with 15 additions and 2 deletions
|
|
@ -5,8 +5,21 @@ _wd() {
|
|||
BEGIN {
|
||||
binmode STDIN, ':encoding(UTF-8)';
|
||||
binmode STDOUT, ':encoding(UTF-8)';
|
||||
}; s|^$HOME|~|g; s|/([^/])[^/]*(?=/)|/\$1|g") | \
|
||||
sed -e "0,/^\//s// \//g" -e "s/\///g"
|
||||
}; \
|
||||
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"
|
||||
}
|
||||
|
||||
if [ "$POWERLINE_DATE_FORMAT" = "" ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue