Installed Oh-My-Zsh, slight polybar change (brightness)
This commit is contained in:
.config/polybar
.oh-my-zsh
CONTRIBUTING.mdLICENSE.txtREADME.mdLICENSENEWSREADME.md_n-killn-aliasesn-cdn-envn-functionsn-helpn-historyn-killn-listn-list-drawn-list-inputn-optionsn-panelizeznt-cd-widgetznt-history-widgetznt-kill-widgetznt-tmux.zshznt-usetty-wrapperzsh-navigation-tools.plugin.zsh
.zshrclib
bzr.zshclipboard.zshcompfix.zshcompletion.zshcorrection.zshdiagnostics.zshdirectories.zshfunctions.zshgit.zshgrep.zshhistory.zshkey-bindings.zshmisc.zshnvm.zshprompt_info_functions.zshspectrum.zshtermsupport.zshtheme-and-appearance.zsh
oh-my-zsh.shplugins
adb
ant
apache2-macports
arcanist
archlinux
asdf
autoenv
autojump
autopep8
aws
battery
bbedit
bgnotify
boot2docker
bower
branch
brew
bundler
bwana
cabal
cake
cakephp3
capistrano
cargo
cask
catimg
celery
chruby
chucknorris
cloudapp
codeclimate
coffee
colemak
colored-man-pages
colorize
command-not-found
common-aliases
compleat
composer
copybuffer
copydir
copyfile
cp
cpanm
debian
dircycle
dirhistory
dirpersist
django
dnf
docker-compose
docker
dotenv
droplr
emacs
ember-cli
emoji-clock
emoji
emotty
emotty.plugin.zshemotty_emoji_set.zshemotty_floral_set.zshemotty_love_set.zshemotty_nature_set.zshemotty_stellar_set.zshemotty_zodiac_set.zsh
encode64
extract
fabric
fancy-ctrl-z
fasd
fastfile
fbterm
fedora
firewalld
forklift
fossil
frontend-search
gas
gb
geeknote
gem
git-extras
git-flow-avh
git-flow
git-hubflow
git-prompt
git-remote-branch
git
gitfast
github
gitignore
glassfish
globalias
gnu-utils
go
golang
gpg-agent
gradle
grails
grunt
gulp
heroku
history-substring-search
history
httpie
iwhois
jake-node
jhbuild
jira
jruby
jsontools
jump
kate
kitchen
knife
knife_ssh
kubectl
laravel
laravel4
laravel5
last-working-dir
lein
lighthouse
lol
macports
man
marked2
mercurial
meteor
mix-fast
mix
mosh
mvn
mysql-macports
n98-magerun
nanoc
ng
nmap
node
nomad
npm
nvm
nyan
osx
pass
paver
pep8
per-directory-history
perl
perms
phing
pip
pj
pod
postgres
pow
powder
powify
profiles
pyenv
pylint
python
rails
rake-fast
rake
rand-quote
rbenv
rbfu
react-native
rebar
redis-cli
repo
rsync
ruby
rust
rvm
safe-paste
sbt
scala
scd
screen
scw
sfffe
shrink-path
singlechar
spring
sprunge
ssh-agent
stack
sublime
sudo
supervisor
suse
svn-fast-info
svn
swiftpm
symfony
symfony2
systemadmin
systemd
taskwarrior
terminalapp
terminitor
terraform
textastic
textmate
thefuck
themes
thor
tig
tmux-cssh
tmux
tmuxinator
torrent
tugboat
ubuntu
urltools
vagrant
vault
vi-mode
vim-interaction
virtualenv
virtualenvwrapper
vundle
wakeonlan
wd
web-search
wp-cli
xcode
yarn
yii
yii2
yum
z
zeus
zsh-navigation-tools
.config
znt
zsh_reload
templates
themes
3den.zsh-themeSoliah.zsh-themeadben.zsh-themeaf-magic.zsh-themeafowler.zsh-themeagnoster.zsh-themealanpeabody.zsh-themeamuse.zsh-themeapple.zsh-themearrow.zsh-themeaussiegeek.zsh-themeavit.zsh-themeawesomepanda.zsh-themebira.zsh-themeblinks.zsh-themebureau.zsh-themecandy-kingdom.zsh-themecandy.zsh-themeclean.zsh-themecloud.zsh-themecrcandy.zsh-themecrunch.zsh-themecypher.zsh-themedallas.zsh-themedarkblood.zsh-themedaveverwer.zsh-themedieter.zsh-themedogenpunk.zsh-themedpoggi.zsh-themedst.zsh-themedstufft.zsh-themeduellj.zsh-themeeastwood.zsh-themeedvardm.zsh-themeemotty.zsh-themeessembeh.zsh-themeevan.zsh-themeexample.zsh-themefino-time.zsh-themefino.zsh-themefishy.zsh-themeflazz.zsh-themefletcherm.zsh-themefox.zsh-themefrisk.zsh-themefrontcube.zsh-themefunky.zsh-themefwalch.zsh-themegallifrey.zsh-themegallois.zsh-themegaryblessington.zsh-themegentoo.zsh-themegeoffgarside.zsh-themegianu.zsh-themegnzh.zsh-themegozilla.zsh-themehalf-life.zsh-themehumza.zsh-themeimajes.zsh-themeintheloop.zsh-themeitchy.zsh-themejaischeema.zsh-themejbergantine.zsh-themejispwoso.zsh-themejnrowe.zsh-themejonathan.zsh-themejosh.zsh-themejreese.zsh-themejtriley.zsh-themejuanghurtado.zsh-themejunkfood.zsh-themekafeitu.zsh-themekardan.zsh-themekennethreitz.zsh-themekiwi.zsh-themekolo.zsh-themekphoen.zsh-themelambda.zsh-themelinuxonly.zsh-themelukerandall.zsh-thememacovsky-ruby.zsh-thememacovsky.zsh-thememaran.zsh-thememgutz.zsh-thememh.zsh-thememichelebologna.zsh-thememikeh.zsh-thememiloshadzic.zsh-thememinimal.zsh-thememira.zsh-thememortalscumbag.zsh-thememrtazz.zsh-thememurilasso.zsh-thememuse.zsh-themenanotech.zsh-themenebirhos.zsh-themenicoulaj.zsh-themenorm.zsh-themeobraun.zsh-themepeepcode.zsh-themephilips.zsh-themepmcgee.zsh-themepure.zsh-themepygmalion.zsh-themere5et.zsh-themerefined.zsh-themergm.zsh-themeristo.zsh-themerixius.zsh-themerkj-repos.zsh-themerkj.zsh-themerobbyrussell.zsh-themesammy.zsh-themesimonoff.zsh-themesimple.zsh-themeskaro.zsh-themesmt.zsh-themesonicradish.zsh-themesorin.zsh-themesporty_256.zsh-themesteeef.zsh-themestrug.zsh-themesunaku.zsh-themesunrise.zsh-themesuperjarin.zsh-themesuvash.zsh-themetakashiyoshida.zsh-themeterminalparty.zsh-themetheunraveler.zsh-themetjkirch.zsh-themetjkirch_mod.zsh-themetonotdo.zsh-themetrapd00r.zsh-themewedisagree.zsh-themewezm+.zsh-themewezm.zsh-themewuffers.zsh-themexiong-chiamiov-plus.zsh-themexiong-chiamiov.zsh-themeys.zsh-themezhann.zsh-theme
tools
89
.oh-my-zsh/plugins/fossil/fossil.plugin.zsh
Normal file
89
.oh-my-zsh/plugins/fossil/fossil.plugin.zsh
Normal file
@@ -0,0 +1,89 @@
|
||||
_FOSSIL_PROMPT=""
|
||||
|
||||
# Prefix at the very beginning of the prompt, before the branch name
|
||||
ZSH_THEME_FOSSIL_PROMPT_PREFIX="%{$fg_bold[blue]%}fossil:(%{$fg_bold[red]%}"
|
||||
|
||||
# At the very end of the prompt
|
||||
ZSH_THEME_FOSSIL_PROMPT_SUFFIX="%{$fg_bold[blue]%})"
|
||||
|
||||
# Text to display if the branch is dirty
|
||||
ZSH_THEME_FOSSIL_PROMPT_DIRTY=" %{$fg_bold[red]%}✖"
|
||||
|
||||
# Text to display if the branch is clean
|
||||
ZSH_THEME_FOSSIL_PROMPT_CLEAN=" %{$fg_bold[green]%}✔"
|
||||
|
||||
function fossil_prompt_info () {
|
||||
local _OUTPUT=`fossil branch 2>&1`
|
||||
local _STATUS=`echo $_OUTPUT | grep "use --repo"`
|
||||
if [ "$_STATUS" = "" ]; then
|
||||
local _EDITED=`fossil changes`
|
||||
local _EDITED_SYM="$ZSH_THEME_FOSSIL_PROMPT_CLEAN"
|
||||
local _BRANCH=`echo $_OUTPUT | grep "* " | sed 's/* //g'`
|
||||
|
||||
if [ "$_EDITED" != "" ]; then
|
||||
_EDITED_SYM="$ZSH_THEME_FOSSIL_PROMPT_DIRTY"
|
||||
fi
|
||||
|
||||
echo "$ZSH_THEME_FOSSIL_PROMPT_PREFIX" \
|
||||
"$_BRANCH" \
|
||||
"$ZSH_THEME_FOSSIL_PROMPT_SUFFIX" \
|
||||
"$_EDITED_SYM"\
|
||||
"%{$reset_color%}"
|
||||
fi
|
||||
}
|
||||
|
||||
function _fossil_get_command_list () {
|
||||
fossil help -a | grep -v "Usage|Common|This is"
|
||||
}
|
||||
|
||||
function _fossil () {
|
||||
local context state state_descr line
|
||||
typeset -A opt_args
|
||||
|
||||
_arguments \
|
||||
'1: :->command'\
|
||||
'2: :->subcommand'
|
||||
|
||||
case $state in
|
||||
command)
|
||||
local _OUTPUT=`fossil branch 2>&1 | grep "use --repo"`
|
||||
if [ "$_OUTPUT" = "" ]; then
|
||||
compadd `_fossil_get_command_list`
|
||||
else
|
||||
compadd clone init import help version
|
||||
fi
|
||||
;;
|
||||
subcommand)
|
||||
if [ "$words[2]" = "help" ]; then
|
||||
compadd `_fossil_get_command_list`
|
||||
else
|
||||
compcall -D
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
function _fossil_prompt () {
|
||||
local current=`echo $PROMPT $RPROMPT | grep fossil`
|
||||
|
||||
if [ "$_FOSSIL_PROMPT" = "" -o "$current" = "" ]; then
|
||||
local _prompt=${PROMPT}
|
||||
local _rprompt=${RPROMPT}
|
||||
|
||||
local is_prompt=`echo $PROMPT | grep git`
|
||||
|
||||
if [ "$is_prompt" = "" ]; then
|
||||
export RPROMPT="$_rprompt"'$(fossil_prompt_info)'
|
||||
else
|
||||
export PROMPT="$_prompt"'$(fossil_prompt_info) '
|
||||
fi
|
||||
|
||||
_FOSSIL_PROMPT="1"
|
||||
fi
|
||||
}
|
||||
|
||||
compdef _fossil fossil
|
||||
|
||||
autoload -U add-zsh-hook
|
||||
|
||||
add-zsh-hook precmd _fossil_prompt
|
Reference in New Issue
Block a user