Installed Oh-My-Zsh, slight polybar change (brightness)

This commit is contained in:
2017-08-15 01:39:00 -05:00
parent 4ba9563c43
commit dd7aa6f5db
586 changed files with 45683 additions and 31 deletions
.config/polybar
.oh-my-zsh
CONTRIBUTING.mdLICENSE.txtREADME.md
lib
oh-my-zsh.sh
plugins
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
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
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
.zshrc

@@ -0,0 +1,197 @@
alias xcb='xcodebuild'
alias xcdd='rm -rf ~/Library/Developer/Xcode/DerivedData/*'
alias xcp='xcode-select --print-path'
alias xcsel='sudo xcode-select --switch'
# original author: @subdigital
# source: http://gist.github.com/subdigital/5420709
function xc {
local xcode_proj
if [[ $# == 0 ]]; then
xcode_proj=(*.{xcworkspace,xcodeproj}(N))
else
xcode_proj=($1/*.{xcworkspace,xcodeproj}(N))
fi
if [[ ${#xcode_proj} -eq 0 ]]; then
if [[ $# == 0 ]]; then
echo "No xcworkspace/xcodeproj file found in the current directory."
else
echo "No xcworkspace/xcodeproj file found in $1."
fi
return 1
else
echo "Found ${xcode_proj[1]}"
open "${xcode_proj[1]}"
fi
}
# "XCode-SELect by Version" - select Xcode by just version number
# Uses naming convention:
# - different versions of Xcode are named Xcode-<version>.app or stored
# in a folder named Xcode-<version>
# - the special version name "default" refers to the "default" Xcode.app with no suffix
function xcselv {
emulate -L zsh
if [[ $# == 0 ]]; then
echo "xcselv: error: no option or argument given" >&2
echo "xcselv: see 'xcselv -h' for help" >&2
return 1
elif [[ $1 == "-p" ]]; then
_omz_xcode_print_active_version
return
elif [[ $1 == "-l" ]]; then
_omz_xcode_list_versions
return
elif [[ $1 == "-L" ]]; then
_omz_xcode_list_versions short
return
elif [[ $1 == "-h" ]]; then
_omz_xcode_print_xcselv_usage
return 0
elif [[ $1 == -* && $1 != "-" ]]; then
echo "xcselv: error: unrecognized option: $1" >&2
echo "xcselv: see 'xcselv -h' for help" >&2
return 1
fi
# Main case: "xcselv <version>" to select a version
local version=$1
local -A xcode_versions
_omz_xcode_locate_versions
if [[ -z ${xcode_versions[$version]} ]]; then
echo "xcselv: error: Xcode version '$version' not found" >&2
return 1
fi
app="${xcode_versions[$version]}"
echo "selecting Xcode $version: $app"
xcsel "$app"
}
function _omz_xcode_print_xcselv_usage {
cat << EOF >&2
Usage:
xcselv <version>
xcselv [options]
Options:
<version> set the active Xcode version
-h print this help message and exit
-p print the active Xcode version
-l list installed Xcode versions (long human-readable form)
-L list installed Xcode versions (short form, version names only)
EOF
}
# Parses the Xcode version from a filename based on our conventions
# Only meaningful when called from other _omz_xcode functions
function _omz_xcode_parse_versioned_file {
local file=$1
local basename=${app:t}
local dir=${app:h}
local parent=${dir:t}
#echo "parent=$parent basename=$basename verstr=$verstr ver=$ver" >&2
local verstr
if [[ $parent == Xcode* ]]; then
if [[ $basename == "Xcode.app" ]]; then
# "Xcode-<version>/Xcode.app" format
verstr=$parent
else
# Both file and parent dir are versioned. Reject.
return 1;
fi
elif [[ $basename == Xcode*.app ]]; then
# "Xcode-<version>.app" format
verstr=${basename:r}
else
# Invalid naming pattern
return 1;
fi
local ver=${verstr#Xcode}
ver=${ver#[- ]}
if [[ -z $ver ]]; then
# Unversioned "default" installation location
ver="default"
fi
print -- "$ver"
}
# Print the active version, using xcselv's notion of versions
function _omz_xcode_print_active_version {
emulate -L zsh
local -A xcode_versions
local versions version active_path
_omz_xcode_locate_versions
active_path=$(xcode-select -p)
active_path=${active_path%%/Contents/Developer*}
versions=(${(kni)xcode_versions})
for version ($versions); do
if [[ "${xcode_versions[$version]}" == $active_path ]]; then
printf "%s (%s)\n" $version $active_path
return
fi
done
printf "%s (%s)\n" "<unknown>" $active_path
}
# Locates all the installed versions of Xcode on this system, for this
# plugin's internal use.
# Populates the $xcode_versions associative array variable
# Caller should local-ize $xcode_versions with `local -A xcode_versions`
function _omz_xcode_locate_versions {
emulate -L zsh
local -a app_dirs
local app_dir apps app xcode_ver
# In increasing precedence order:
app_dirs=(/Applications $HOME/Applications)
for app_dir ($app_dirs); do
apps=( $app_dir/Xcode*.app(N) $app_dir/Xcode*/Xcode.app(N) )
for app ($apps); do
xcode_ver=$(_omz_xcode_parse_versioned_file $app)
if [[ $? != 0 ]]; then
continue
fi
xcode_versions[$xcode_ver]=$app
done
done
}
function _omz_xcode_list_versions {
emulate -L zsh
local -A xcode_versions
_omz_xcode_locate_versions
local width=1 width_i versions do_short=0
if [[ $1 == "short" ]]; then
do_short=1
fi
versions=(${(kni)xcode_versions})
for version ($versions); do
if [[ $#version > $width ]]; then
width=$#version;
fi
done
for version ($versions); do
if [[ $do_short == 1 ]]; then
printf "%s\n" $version
else
printf "%-${width}s -> %s\n" "$version" "${xcode_versions[$version]}"
fi
done
}
function simulator {
local devfolder
devfolder="$(xcode-select -p)"
# Xcode ≤ 5.x
if [[ -d "${devfolder}/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app" ]]; then
open "${devfolder}/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app"
# Xcode ≥ 6.x
elif [[ -d "${devfolder}/Applications/iOS Simulator.app" ]]; then
open "${devfolder}/Applications/iOS Simulator.app"
# Xcode ≥ 7.x
else
open "${devfolder}/Applications/Simulator.app"
fi
}