branched changes for homepc

This commit is contained in:
Tristaan
2017-10-16 18:54:30 +02:00
parent 178bfef951
commit 41c8817624
571 changed files with 5977 additions and 616 deletions

0
.oh-my-zsh/plugins/adb/README.md Executable file → Normal file
View File

5
.oh-my-zsh/plugins/adb/_adb Executable file → Normal file
View File

@@ -13,9 +13,13 @@ _1st_arguments=(
'disconnect:disconnect from a TCP/IP device. Port 5555 is default.'
'emu:run emulator console command'
'forward:forward socket connections'
'get-devpath:print the device path'
'get-serialno:print the serial number of the device'
'get-state:print the current state of the device: offline | bootloader | device'
'help:show the help message'
'install:push this package file to the device and install it'
'jdwp:list PIDs of processes hosting a JDWP transport'
'keygen:generate adb public/private key'
'kill-server:kill the server if it is running'
'logcat:view device log'
'pull:copy file/dir from device'
@@ -30,6 +34,7 @@ _1st_arguments=(
'start-server:ensure that there is a server running'
'tcpip:restart host adb in tcpip mode'
'uninstall:remove this app package from the device'
'usb:restart the adbd daemon listing on USB'
'version:show version num'
'wait-for-device:block until device is online'
)

0
.oh-my-zsh/plugins/ant/ant.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/apache2-macports/README.md Executable file → Normal file
View File

View File

0
.oh-my-zsh/plugins/arcanist/README.md Executable file → Normal file
View File

0
.oh-my-zsh/plugins/arcanist/arcanist.plugin.zsh Executable file → Normal file
View File

2
.oh-my-zsh/plugins/archlinux/README.md Executable file → Normal file
View File

@@ -73,6 +73,8 @@
| pacupd | sudo pacman -Sy | Update and refresh the local package database |
| pacupg | sudo pacman -Syu | Sync with repositories before upgrading packages |
| upgrade | sudo pacman -Syu | Sync with repositories before upgrading packages |
| pacfileupg | sudo pacman -Fy | Download fresh package databases from the server |
| pacfiles | pacman -Fs | Search package file names for matching strings. |
| Function | Description |
|----------------|------------------------------------------------------|

2
.oh-my-zsh/plugins/archlinux/archlinux.plugin.zsh Executable file → Normal file
View File

@@ -82,6 +82,8 @@ alias pacinsd='sudo pacman -S --asdeps'
alias pacmir='sudo pacman -Syy'
alias paclsorphans='sudo pacman -Qdt'
alias pacrmorphans='sudo pacman -Rs $(pacman -Qtdq)'
alias pacfileupg='sudo pacman -Fy'
alias pacfiles='pacman tFs'
if (( $+commands[abs] && $+commands[aur] )); then

0
.oh-my-zsh/plugins/asdf/README.md Executable file → Normal file
View File

0
.oh-my-zsh/plugins/asdf/asdf.plugin.zsh Executable file → Normal file
View File

2
.oh-my-zsh/plugins/autoenv/autoenv.plugin.zsh Executable file → Normal file
View File

@@ -1,7 +1,7 @@
# Activates autoenv or reports its failure
() {
if ! type autoenv_init >/dev/null; then
for d (~/.autoenv /usr/local/opt/autoenv /usr/local/bin); do
for d (~/.autoenv ~/.local/bin /usr/local/opt/autoenv /usr/local/bin); do
if [[ -e $d/activate.sh ]]; then
autoenv_dir=$d
break

0
.oh-my-zsh/plugins/autojump/autojump.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/autopep8/_autopep8 Executable file → Normal file
View File

0
.oh-my-zsh/plugins/autopep8/autopep8.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/aws/aws.plugin.zsh Executable file → Normal file
View File

2
.oh-my-zsh/plugins/battery/battery.plugin.zsh Executable file → Normal file
View File

@@ -100,7 +100,7 @@ elif [[ "$OSTYPE" = linux* ]] ; then
else
color='red'
fi
echo "%{$fg[$color]%}[$(battery_pct_remaining)%%]%{$reset_color%}"
echo "%{$fg[$color]%}$(battery_pct_remaining)%%%{$reset_color%}"
else
echo "∞"
fi

0
.oh-my-zsh/plugins/bbedit/README.md Executable file → Normal file
View File

0
.oh-my-zsh/plugins/bbedit/bbedit.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/bgnotify/README.md Executable file → Normal file
View File

0
.oh-my-zsh/plugins/boot2docker/README.md Executable file → Normal file
View File

0
.oh-my-zsh/plugins/boot2docker/_boot2docker Executable file → Normal file
View File

0
.oh-my-zsh/plugins/bower/_bower Executable file → Normal file
View File

0
.oh-my-zsh/plugins/bower/bower.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/branch/README.md Executable file → Normal file
View File

0
.oh-my-zsh/plugins/branch/branch.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/brew/brew.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/bundler/README.md Executable file → Normal file
View File

0
.oh-my-zsh/plugins/bundler/_bundler Executable file → Normal file
View File

0
.oh-my-zsh/plugins/bundler/bundler.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/bwana/bwana.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/cabal/cabal.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/cake/cake.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/cakephp3/cakephp3.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/capistrano/_capistrano Executable file → Normal file
View File

0
.oh-my-zsh/plugins/capistrano/capistrano.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/cargo/README.md Executable file → Normal file
View File

0
.oh-my-zsh/plugins/cargo/_cargo Executable file → Normal file
View File

12
.oh-my-zsh/plugins/cask/README.md Executable file → Normal file
View File

@@ -1,11 +1,15 @@
# cask plugin
# Cask plugin
Loads `cask` completion from non-standard locations, such as if installed
[Cask](https://github.com/cask/cask) is a project management tool for Emacs that helps
automate the package development cycle; development, dependencies, testing, building,
packaging and more.
This plugin loads `cask` completion from non-standard locations, such as if installed
via Homebrew or others. To enable it, add `cask` to your plugins array:
```zsh
plugins=(... cask)
```
Make sure you have the `cask` directory in your `$PATH` before loading
Oh My Zsh, otherwise you'll get the "command not found" error.
Make sure you have the `cask` directory in your `$PATH` before loading Oh My Zsh,
otherwise you'll get a "command not found" error.

0
.oh-my-zsh/plugins/cask/cask.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/catimg/catimg.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/catimg/colors.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 353 B

After

Width:  |  Height:  |  Size: 353 B

0
.oh-my-zsh/plugins/celery/_celery Executable file → Normal file
View File

0
.oh-my-zsh/plugins/chruby/chruby.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/chucknorris/.gitignore vendored Executable file → Normal file
View File

0
.oh-my-zsh/plugins/chucknorris/LICENSE Executable file → Normal file
View File

0
.oh-my-zsh/plugins/chucknorris/chucknorris.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/chucknorris/fortunes/chucknorris Executable file → Normal file
View File

0
.oh-my-zsh/plugins/cloudapp/cloudapp.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/codeclimate/_codeclimate Executable file → Normal file
View File

0
.oh-my-zsh/plugins/coffee/README.md Executable file → Normal file
View File

0
.oh-my-zsh/plugins/coffee/_coffee Executable file → Normal file
View File

0
.oh-my-zsh/plugins/coffee/coffee.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/colemak/colemak-less Executable file → Normal file
View File

0
.oh-my-zsh/plugins/colemak/colemak.plugin.zsh Executable file → Normal file
View File

View File

0
.oh-my-zsh/plugins/colorize/colorize.plugin.zsh Executable file → Normal file
View File

View File

View File

0
.oh-my-zsh/plugins/compleat/compleat.plugin.zsh Executable file → Normal file
View File

5
.oh-my-zsh/plugins/composer/composer.plugin.zsh Executable file → Normal file
View File

@@ -39,14 +39,17 @@ alias c='composer'
alias csu='composer self-update'
alias cu='composer update'
alias cr='composer require'
alias crm='composer remove'
alias ci='composer install'
alias ccp='composer create-project'
alias cdu='composer dump-autoload'
alias cdo='composer dump-autoload --optimize-autoloader'
alias cgu='composer global update'
alias cgr='composer global require'
alias cgrm='composer global remove'
# install composer in the current directory
alias cget='curl -s https://getcomposer.org/installer | php'
# Add Composer's global binaries to PATH
export PATH=$PATH:~/.composer/vendor/bin
export PATH=$PATH:$(composer global config bin-dir --absolute) 2>/dev/null

0
.oh-my-zsh/plugins/copybuffer/README.md Executable file → Normal file
View File

0
.oh-my-zsh/plugins/copybuffer/copybuffer.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/copydir/copydir.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/copyfile/copyfile.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/cp/README.md Executable file → Normal file
View File

0
.oh-my-zsh/plugins/cp/cp.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/cpanm/_cpanm Executable file → Normal file
View File

2
.oh-my-zsh/plugins/debian/debian.plugin.zsh Executable file → Normal file
View File

@@ -192,7 +192,7 @@ apt-history () {
awk '{print $4"="$5}'
;;
list)
zcat $(ls -rt /var/log/dpkg*)
zgrep --no-filename '' $(ls -rt /var/log/dpkg*)
;;
*)
echo "Parameters:"

0
.oh-my-zsh/plugins/dircycle/dircycle.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/dirhistory/dirhistory.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/dirpersist/dirpersist.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/django/django.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/dnf/dnf.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/docker-compose/README.md Executable file → Normal file
View File

0
.oh-my-zsh/plugins/docker-compose/_docker-compose Executable file → Normal file
View File

View File

0
.oh-my-zsh/plugins/docker/README.md Executable file → Normal file
View File

1540
.oh-my-zsh/plugins/docker/_docker Executable file → Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,34 @@
# dotenv
Automatically load your project ENV variables from `.env` file when you `cd` into project root directory.
Storing configuration in the environment is one of the tenets of a [twelve-factor app](http://www.12factor.net). Anything that is likely to change between deployment environmentssuch as resource handles for databases or credentials for external servicesshould be extracted from the code into environment variables.
## Installation
Just add the plugin to your `.zshrc`:
```sh
plugins=(git man dotenv)
```
## Usage
Create `.env` file inside your project directory and put your local ENV variables there.
For example:
```sh
export AWS_S3_TOKEN=d84a83539134f28f412c652b09f9f98eff96c9a
export SECRET_KEY=7c6c72d959416d5aa368a409362ec6e2ac90d7f
export MONGO_URI=mongodb://127.0.0.1:27017
export PORT=3001
```
`export` is optional. This format works as well:
```sh
AWS_S3_TOKEN=d84a83539134f28f412c652b09f9f98eff96c9a
SECRET_KEY=7c6c72d959416d5aa368a409362ec6e2ac90d7f
MONGO_URI=mongodb://127.0.0.1:27017
PORT=3001
```
**It's strongly recommended to add `.env` file to `.gitignore`**, because usually it contains sensitive information such as your credentials, secret keys, passwords etc. You don't want to commit this file, it supposed to be local only.

View File

@@ -0,0 +1,10 @@
#!/bin/zsh
source_env() {
if [[ -f .env ]]; then
source .env
fi
}
autoload -U add-zsh-hook
add-zsh-hook chpwd source_env

2
.oh-my-zsh/plugins/droplr/README.md Executable file → Normal file
View File

@@ -1,6 +1,6 @@
# droplr
Use [Droplr](https://droplr.com/) from the comand line to upload files and shorten
Use [Droplr](https://droplr.com/) from the command line to upload files and shorten
links. It needs to have [Droplr.app](https://droplr.com/apps) installed and logged
in. MacOS only.

0
.oh-my-zsh/plugins/droplr/droplr.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/emacs/emacs.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/ember-cli/README.md Executable file → Normal file
View File

0
.oh-my-zsh/plugins/ember-cli/ember-cli.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/emoji-clock/emoji-clock.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/emoji/README.md Executable file → Normal file
View File

0
.oh-my-zsh/plugins/emoji/emoji-char-definitions.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/emoji/emoji-data.txt Executable file → Normal file
View File

0
.oh-my-zsh/plugins/emoji/emoji.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/emoji/update_emoji.pl Executable file → Normal file
View File

0
.oh-my-zsh/plugins/emotty/emotty.plugin.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/emotty/emotty_emoji_set.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/emotty/emotty_floral_set.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/emotty/emotty_love_set.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/emotty/emotty_nature_set.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/emotty/emotty_stellar_set.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/emotty/emotty_zodiac_set.zsh Executable file → Normal file
View File

0
.oh-my-zsh/plugins/encode64/encode64.plugin.zsh Executable file → Normal file
View File

Some files were not shown because too many files have changed in this diff Show More