diff options
-rw-r--r-- | .config/thefuck/settings.py | 26 | ||||
-rw-r--r-- | .gitconfig | 15 | ||||
m--------- | .oh-my-zsh | 0 | ||||
-rw-r--r-- | .vim/.netrwhist | 5 | ||||
-rwxr-xr-x | .virtpyenvs/get_env_details | 4 | ||||
-rw-r--r-- | .virtpyenvs/initialize | 3 | ||||
-rw-r--r-- | .virtpyenvs/postactivate | 3 | ||||
-rw-r--r-- | .virtpyenvs/postdeactivate | 3 | ||||
-rwxr-xr-x | .virtpyenvs/postmkproject | 3 | ||||
-rw-r--r-- | .virtpyenvs/postmkvirtualenv | 3 | ||||
-rwxr-xr-x | .virtpyenvs/postrmvirtualenv | 4 | ||||
-rwxr-xr-x | .virtpyenvs/preactivate | 4 | ||||
-rw-r--r-- | .virtpyenvs/predeactivate | 3 | ||||
-rwxr-xr-x | .virtpyenvs/premkproject | 3 | ||||
-rwxr-xr-x | .virtpyenvs/premkvirtualenv | 4 | ||||
-rwxr-xr-x | .virtpyenvs/prermvirtualenv | 4 | ||||
-rw-r--r-- | .zshrc | 102 |
17 files changed, 189 insertions, 0 deletions
diff --git a/.config/thefuck/settings.py b/.config/thefuck/settings.py new file mode 100644 index 0000000..8478f6d --- /dev/null +++ b/.config/thefuck/settings.py @@ -0,0 +1,26 @@ +# The Fuck settings file +# +# The rules are defined as in the example bellow: +# +# rules = ['cd_parent', 'git_push', 'python_command', 'sudo'] +# +# The default values are as follows. Uncomment and change to fit your needs. +# See https://github.com/nvbn/thefuck#settings for more information. +# + +# rules = [<const: All rules enabled>] +# exclude_rules = [] +# wait_command = 3 +# require_confirmation = True +# no_colors = False +# debug = False +# priority = {} +# history_limit = None +# alter_history = True +# wait_slow_command = 15 +# slow_commands = ['lein', 'react-native', 'gradle', './gradlew', 'vagrant'] +# repeat = False +# instant_mode = False +# num_close_matches = 3 +# env = {'LC_ALL': 'C', 'LANG': 'C', 'GIT_TRACE': '1'} +# excluded_search_path_prefixes = [] diff --git a/.gitconfig b/.gitconfig new file mode 100644 index 0000000..6426480 --- /dev/null +++ b/.gitconfig @@ -0,0 +1,15 @@ +[oh-my-zsh] + git-commit-alias = 13d4176a686507678ffd1b889838356f95f217e0 +[alias] + build = "!a() {\nlocal _scope _attention _message\nwhile [ $# -ne 0 ]; do\ncase $1 in\n -s | --scope )\n if [ -z $2 ]; then\n echo \"Missing scope!\"\n return 1\n fi\n _scope=\"$2\"\n shift 2\n ;;\n -a | --attention )\n _attention=\"!\"\n shift 1\n ;;\n * )\n _message=\"${_message} $1\"\n shift 1\n ;;\nesac\ndone\ngit commit -m \"build${_scope:+(${_scope})}${_attention}:${_message}\"\n}; a" + chore = "!a() {\nlocal _scope _attention _message\nwhile [ $# -ne 0 ]; do\ncase $1 in\n -s | --scope )\n if [ -z $2 ]; then\n echo \"Missing scope!\"\n return 1\n fi\n _scope=\"$2\"\n shift 2\n ;;\n -a | --attention )\n _attention=\"!\"\n shift 1\n ;;\n * )\n _message=\"${_message} $1\"\n shift 1\n ;;\nesac\ndone\ngit commit -m \"chore${_scope:+(${_scope})}${_attention}:${_message}\"\n}; a" + ci = "!a() {\nlocal _scope _attention _message\nwhile [ $# -ne 0 ]; do\ncase $1 in\n -s | --scope )\n if [ -z $2 ]; then\n echo \"Missing scope!\"\n return 1\n fi\n _scope=\"$2\"\n shift 2\n ;;\n -a | --attention )\n _attention=\"!\"\n shift 1\n ;;\n * )\n _message=\"${_message} $1\"\n shift 1\n ;;\nesac\ndone\ngit commit -m \"ci${_scope:+(${_scope})}${_attention}:${_message}\"\n}; a" + docs = "!a() {\nlocal _scope _attention _message\nwhile [ $# -ne 0 ]; do\ncase $1 in\n -s | --scope )\n if [ -z $2 ]; then\n echo \"Missing scope!\"\n return 1\n fi\n _scope=\"$2\"\n shift 2\n ;;\n -a | --attention )\n _attention=\"!\"\n shift 1\n ;;\n * )\n _message=\"${_message} $1\"\n shift 1\n ;;\nesac\ndone\ngit commit -m \"docs${_scope:+(${_scope})}${_attention}:${_message}\"\n}; a" + feat = "!a() {\nlocal _scope _attention _message\nwhile [ $# -ne 0 ]; do\ncase $1 in\n -s | --scope )\n if [ -z $2 ]; then\n echo \"Missing scope!\"\n return 1\n fi\n _scope=\"$2\"\n shift 2\n ;;\n -a | --attention )\n _attention=\"!\"\n shift 1\n ;;\n * )\n _message=\"${_message} $1\"\n shift 1\n ;;\nesac\ndone\ngit commit -m \"feat${_scope:+(${_scope})}${_attention}:${_message}\"\n}; a" + fix = "!a() {\nlocal _scope _attention _message\nwhile [ $# -ne 0 ]; do\ncase $1 in\n -s | --scope )\n if [ -z $2 ]; then\n echo \"Missing scope!\"\n return 1\n fi\n _scope=\"$2\"\n shift 2\n ;;\n -a | --attention )\n _attention=\"!\"\n shift 1\n ;;\n * )\n _message=\"${_message} $1\"\n shift 1\n ;;\nesac\ndone\ngit commit -m \"fix${_scope:+(${_scope})}${_attention}:${_message}\"\n}; a" + perf = "!a() {\nlocal _scope _attention _message\nwhile [ $# -ne 0 ]; do\ncase $1 in\n -s | --scope )\n if [ -z $2 ]; then\n echo \"Missing scope!\"\n return 1\n fi\n _scope=\"$2\"\n shift 2\n ;;\n -a | --attention )\n _attention=\"!\"\n shift 1\n ;;\n * )\n _message=\"${_message} $1\"\n shift 1\n ;;\nesac\ndone\ngit commit -m \"perf${_scope:+(${_scope})}${_attention}:${_message}\"\n}; a" + refactor = "!a() {\nlocal _scope _attention _message\nwhile [ $# -ne 0 ]; do\ncase $1 in\n -s | --scope )\n if [ -z $2 ]; then\n echo \"Missing scope!\"\n return 1\n fi\n _scope=\"$2\"\n shift 2\n ;;\n -a | --attention )\n _attention=\"!\"\n shift 1\n ;;\n * )\n _message=\"${_message} $1\"\n shift 1\n ;;\nesac\ndone\ngit commit -m \"refactor${_scope:+(${_scope})}${_attention}:${_message}\"\n}; a" + rev = "!a() {\nlocal _scope _attention _message\nwhile [ $# -ne 0 ]; do\ncase $1 in\n -s | --scope )\n if [ -z $2 ]; then\n echo \"Missing scope!\"\n return 1\n fi\n _scope=\"$2\"\n shift 2\n ;;\n -a | --attention )\n _attention=\"!\"\n shift 1\n ;;\n * )\n _message=\"${_message} $1\"\n shift 1\n ;;\nesac\ndone\ngit commit -m \"revert${_scope:+(${_scope})}${_attention}:${_message}\"\n}; a" + style = "!a() {\nlocal _scope _attention _message\nwhile [ $# -ne 0 ]; do\ncase $1 in\n -s | --scope )\n if [ -z $2 ]; then\n echo \"Missing scope!\"\n return 1\n fi\n _scope=\"$2\"\n shift 2\n ;;\n -a | --attention )\n _attention=\"!\"\n shift 1\n ;;\n * )\n _message=\"${_message} $1\"\n shift 1\n ;;\nesac\ndone\ngit commit -m \"style${_scope:+(${_scope})}${_attention}:${_message}\"\n}; a" + test = "!a() {\nlocal _scope _attention _message\nwhile [ $# -ne 0 ]; do\ncase $1 in\n -s | --scope )\n if [ -z $2 ]; then\n echo \"Missing scope!\"\n return 1\n fi\n _scope=\"$2\"\n shift 2\n ;;\n -a | --attention )\n _attention=\"!\"\n shift 1\n ;;\n * )\n _message=\"${_message} $1\"\n shift 1\n ;;\nesac\ndone\ngit commit -m \"test${_scope:+(${_scope})}${_attention}:${_message}\"\n}; a" + wip = "!a() {\nlocal _scope _attention _message\nwhile [ $# -ne 0 ]; do\ncase $1 in\n -s | --scope )\n if [ -z $2 ]; then\n echo \"Missing scope!\"\n return 1\n fi\n _scope=\"$2\"\n shift 2\n ;;\n -a | --attention )\n _attention=\"!\"\n shift 1\n ;;\n * )\n _message=\"${_message} $1\"\n shift 1\n ;;\nesac\ndone\ngit commit -m \"wip${_scope:+(${_scope})}${_attention}:${_message}\"\n}; a" diff --git a/.oh-my-zsh b/.oh-my-zsh new file mode 160000 +Subproject 13d4176a686507678ffd1b889838356f95f217e diff --git a/.vim/.netrwhist b/.vim/.netrwhist new file mode 100644 index 0000000..4aec9a9 --- /dev/null +++ b/.vim/.netrwhist @@ -0,0 +1,5 @@ +let g:netrw_dirhistmax =10 +let g:netrw_dirhistcnt =3 +let g:netrw_dirhist_3='/etc/openvpn/client' +let g:netrw_dirhist_2='/home/tyler/.oh-my-zsh/plugins' +let g:netrw_dirhist_1='/home/tyler/.oh-my-zsh' diff --git a/.virtpyenvs/get_env_details b/.virtpyenvs/get_env_details new file mode 100755 index 0000000..d579c40 --- /dev/null +++ b/.virtpyenvs/get_env_details @@ -0,0 +1,4 @@ +#!/usr/bin/zsh +# This hook is run when the list of virtualenvs is printed so each name can include details. +# argument: environment name + diff --git a/.virtpyenvs/initialize b/.virtpyenvs/initialize new file mode 100644 index 0000000..9715e08 --- /dev/null +++ b/.virtpyenvs/initialize @@ -0,0 +1,3 @@ +#!/usr/bin/zsh +# This hook is sourced during the startup phase when loading virtualenvwrapper.sh. + diff --git a/.virtpyenvs/postactivate b/.virtpyenvs/postactivate new file mode 100644 index 0000000..cef5f89 --- /dev/null +++ b/.virtpyenvs/postactivate @@ -0,0 +1,3 @@ +#!/usr/bin/zsh +# This hook is sourced after every virtualenv is activated. + diff --git a/.virtpyenvs/postdeactivate b/.virtpyenvs/postdeactivate new file mode 100644 index 0000000..6fefe20 --- /dev/null +++ b/.virtpyenvs/postdeactivate @@ -0,0 +1,3 @@ +#!/usr/bin/zsh +# This hook is sourced after every virtualenv is deactivated. + diff --git a/.virtpyenvs/postmkproject b/.virtpyenvs/postmkproject new file mode 100755 index 0000000..8de8f2d --- /dev/null +++ b/.virtpyenvs/postmkproject @@ -0,0 +1,3 @@ +#!/usr/bin/zsh +# This hook is run after a new project is activated. + diff --git a/.virtpyenvs/postmkvirtualenv b/.virtpyenvs/postmkvirtualenv new file mode 100644 index 0000000..5d48abc --- /dev/null +++ b/.virtpyenvs/postmkvirtualenv @@ -0,0 +1,3 @@ +#!/usr/bin/zsh +# This hook is sourced after a new virtualenv is activated. + diff --git a/.virtpyenvs/postrmvirtualenv b/.virtpyenvs/postrmvirtualenv new file mode 100755 index 0000000..0d34a0e --- /dev/null +++ b/.virtpyenvs/postrmvirtualenv @@ -0,0 +1,4 @@ +#!/usr/bin/zsh +# This hook is run after a virtualenv is deleted. +# argument: full path to environment directory + diff --git a/.virtpyenvs/preactivate b/.virtpyenvs/preactivate new file mode 100755 index 0000000..79d4810 --- /dev/null +++ b/.virtpyenvs/preactivate @@ -0,0 +1,4 @@ +#!/usr/bin/zsh +# This hook is run before every virtualenv is activated. +# argument: environment name + diff --git a/.virtpyenvs/predeactivate b/.virtpyenvs/predeactivate new file mode 100644 index 0000000..265b48b --- /dev/null +++ b/.virtpyenvs/predeactivate @@ -0,0 +1,3 @@ +#!/usr/bin/zsh +# This hook is sourced before every virtualenv is deactivated. + diff --git a/.virtpyenvs/premkproject b/.virtpyenvs/premkproject new file mode 100755 index 0000000..fb93455 --- /dev/null +++ b/.virtpyenvs/premkproject @@ -0,0 +1,3 @@ +#!/usr/bin/zsh +# This hook is run after a new project is created and before it is activated. + diff --git a/.virtpyenvs/premkvirtualenv b/.virtpyenvs/premkvirtualenv new file mode 100755 index 0000000..0e6671e --- /dev/null +++ b/.virtpyenvs/premkvirtualenv @@ -0,0 +1,4 @@ +#!/usr/bin/zsh +# This hook is run after a new virtualenv is created and before it is activated. +# argument: name of new environment + diff --git a/.virtpyenvs/prermvirtualenv b/.virtpyenvs/prermvirtualenv new file mode 100755 index 0000000..d0affe8 --- /dev/null +++ b/.virtpyenvs/prermvirtualenv @@ -0,0 +1,4 @@ +#!/usr/bin/zsh +# This hook is run before a virtualenv is deleted. +# argument: full path to environment directory + @@ -0,0 +1,102 @@ +# If you come from bash you might have to change your $PATH. +# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH + +# Path to your Oh My Zsh installation. +export ZSH="$HOME/.oh-my-zsh" + +# Set name of the theme to load --- if set to "random", it will +# load a random theme each time Oh My Zsh is loaded, in which case, +# to know which specific one was loaded, run: echo $RANDOM_THEME +# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes +ZSH_THEME="random" + +# Set list of themes to pick from when loading at random +# Setting this variable when ZSH_THEME=random will cause zsh to load +# a theme from this variable instead of looking in $ZSH/themes/ +# If set to an empty array, this variable will have no effect. +ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" "clean" ) + +# Uncomment the following line to use case-sensitive completion. +CASE_SENSITIVE="true" + +# Uncomment the following line to use hyphen-insensitive completion. +# Case-sensitive completion must be off. _ and - will be interchangeable. +HYPHEN_INSENSITIVE="true" + +# Uncomment one of the following lines to change the auto-update behavior +# zstyle ':omz:update' mode disabled # disable automatic updates +zstyle ':omz:update' mode auto # update automatically without asking +# zstyle ':omz:update' mode reminder # just remind me to update when it's time + +# Uncomment the following line to change how often to auto-update (in days). +zstyle ':omz:update' frequency 13 + +# Uncomment the following line if pasting URLs and other text is messed up. +# DISABLE_MAGIC_FUNCTIONS="true" + +# Uncomment the following line to disable colors in ls. +# DISABLE_LS_COLORS="true" + +# Uncomment the following line to disable auto-setting terminal title. +# DISABLE_AUTO_TITLE="true" + +# Uncomment the following line to enable command auto-correction. +ENABLE_CORRECTION="true" + +# Uncomment the following line to display red dots whilst waiting for completion. +# You can also set it to another string to have that shown instead of the default red dots. +# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f" +# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765) +COMPLETION_WAITING_DOTS="true" + +# Uncomment the following line if you want to disable marking untracked files +# under VCS as dirty. This makes repository status check for large repositories +# much, much faster. +DISABLE_UNTRACKED_FILES_DIRTY="true" + +# Uncomment the following line if you want to change the command execution time +# stamp shown in the history command output. +# You can set one of the optional three formats: +# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" +# or set a custom format using the strftime function format specifications, +# see 'man strftime' for details. +HIST_STAMPS="mm-dd-yyyy" + +# Would you like to use another custom folder than $ZSH/custom? +# ZSH_CUSTOM=/path/to/new-custom-folder + +# Which plugins would you like to load? +# Standard plugins can be found in $ZSH/plugins/ +# Custom plugins may be added to $ZSH_CUSTOM/plugins/ +# Example format: plugins=(rails git textmate ruby lighthouse) +# Add wisely, as too many plugins slow down shell startup. +plugins=(archlinux autoenv autojump branch catimg colored-man-pages colorize command-not-found common-aliases dircycle docker docker-compose emoji emoji-clock frontend-search git-auto-fetch git-commit gitfast git-flow gpg-agent grc magic-enter thefuck tldr vi-mode virtualenvwrapper virtualenv web-search zbell z) + +source $ZSH/oh-my-zsh.sh + +# User configuration + +# You may need to manually set your language environment +export LANG=en_US.UTF-8 + +# Preferred editor for local and remote sessions +export EDITOR='nvim' + +# Compilation flags +export ARCHFLAGS="-arch $(uname -m)" + +# Set personal aliases, overriding those provided by Oh My Zsh libs, +# plugins, and themes. Aliases can be placed here, though Oh My Zsh +# users are encouraged to define aliases within a top-level file in +# the $ZSH_CUSTOM folder, with .zsh extension. Examples: +# - $ZSH_CUSTOM/aliases.zsh +# - $ZSH_CUSTOM/macos.zsh +# For a full list of active aliases, run `alias`. +# +# Example aliases +alias zconf="$EDITOR ~/.zshrc" +alias omzconf="$EDITOR ~/.oh-my-zsh" + +# virtualenvwrapper vars +export WORKON_HOME=~/.virtpyenvs +export PATH=$HOME/.local/bin:$PATH |