From 0673e01c0a499b28e897003ebfc059120e217fd8 Mon Sep 17 00:00:00 2001 From: Gene Liverman Date: Fri, 5 May 2017 23:06:42 -0700 Subject: [PATCH] Round 1 of files --- .gitignore | 1 + .travis.yml | 7 ++++ Vagrantfile | 3 ++ bin/dots.py | 16 +++++++++ copy/mac/gitconfig | 13 +++++++ copy/puppetforge.yml | 5 +++ link/gemrc | 3 ++ link/mac/profile | 16 +++++++++ link/nix/ssh/config | 3 ++ link/nix/tmux.conf | 1 + link/nix/vimrc | 35 ++++++++++++++++++ link/nix/zshrc | 84 ++++++++++++++++++++++++++++++++++++++++++++ 12 files changed, 187 insertions(+) create mode 100644 .gitignore create mode 100644 .travis.yml create mode 100644 Vagrantfile create mode 100644 bin/dots.py create mode 100644 copy/mac/gitconfig create mode 100644 copy/puppetforge.yml create mode 100644 link/gemrc create mode 100644 link/mac/profile create mode 100644 link/nix/ssh/config create mode 100644 link/nix/tmux.conf create mode 100644 link/nix/vimrc create mode 100644 link/nix/zshrc diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a977916 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.vagrant/ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..7002068 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +language: python +python: +- '2.7' +- '3.3' +- pypy +script: pytest + diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..9b3e97e --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,3 @@ +Vagrant.configure("2") do |config| + config.vm.box = "genebean/centos-7-nocm" +end diff --git a/bin/dots.py b/bin/dots.py new file mode 100644 index 0000000..0c25d4c --- /dev/null +++ b/bin/dots.py @@ -0,0 +1,16 @@ +import platform + +my_platform=platform.platform().lower() +if 'darwin' in my_platform: + mac_version=platform.mac_ver()[0].split('.') + if int(mac_version[0]) == 10 and int(mac_version[1]) >= 12: + print("It seems you are on macOS") + elif int(mac_version[0]) == 10 and int(mac_version[1]) < 12: + print("It seems you are on OS X") + else: + print("What tha... you're Apple is pre-OS X (" + platform.mac_ver()[0] + " to be exact)" ) +elif 'linux' in my_platform: + print("It seems you are on Linux") +else: + print("Not sure what OS you are on but here's what I see: " + my_platform) + diff --git a/copy/mac/gitconfig b/copy/mac/gitconfig new file mode 100644 index 0000000..b604033 --- /dev/null +++ b/copy/mac/gitconfig @@ -0,0 +1,13 @@ +[core] + excludesfile = /Users/gliverma/.gitignore_global +[difftool "sourcetree"] + cmd = /Applications/SourceTree.app/Contents/Resources/araxiscompare-w.sh -2 \"$LOCAL\" \"$REMOTE\" + path = +[mergetool "sourcetree"] + cmd = /Applications/SourceTree.app/Contents/Resources/araxisgitmerge-w.sh \"$REMOTE\" \"$BASE\" \"$LOCAL\" \"$MERGED\" + trustExitCode = true +[user] + name = Gene Liverman + email = gene@technicalissues.us +[commit] + template = /Users/geneliverman/.stCommitMsg diff --git a/copy/puppetforge.yml b/copy/puppetforge.yml new file mode 100644 index 0000000..1763a88 --- /dev/null +++ b/copy/puppetforge.yml @@ -0,0 +1,5 @@ +--- +url: 'https://forgeapi.puppetlabs.com' +username: 'genebean' +password: 'change-me-to-a-real-password' + diff --git a/link/gemrc b/link/gemrc new file mode 100644 index 0000000..5fe4197 --- /dev/null +++ b/link/gemrc @@ -0,0 +1,3 @@ +--- +gem: --no-ri --no-rdoc + diff --git a/link/mac/profile b/link/mac/profile new file mode 100644 index 0000000..617e06b --- /dev/null +++ b/link/mac/profile @@ -0,0 +1,16 @@ +alias ll='ls -G -l' +alias ls='ls -G' + +export EDITOR='vim' + +export PATH=$PATH:~/.nexustools +export PATH=$PATH:/Applications/Araxis\ Merge.app/Contents/Utilities + +#export PS1='\u:☕️ \W \$ ' +if [ -f $(brew --prefix)/etc/bash_completion ]; then + source $(brew --prefix)/etc/bash_completion + source $(brew --prefix)/etc/bash_completion.d/git-completion.bash + source $(brew --prefix)/etc/bash_completion.d/git-prompt.sh +fi +export GIT_PS1_SHOWDIRTYSTATE=true +export PS1='\h:\W \$$(__git_ps1) ' diff --git a/link/nix/ssh/config b/link/nix/ssh/config new file mode 100644 index 0000000..2d0d393 --- /dev/null +++ b/link/nix/ssh/config @@ -0,0 +1,3 @@ +Host *.westga.edu + User ven-gliverman + diff --git a/link/nix/tmux.conf b/link/nix/tmux.conf new file mode 100644 index 0000000..a6488ac --- /dev/null +++ b/link/nix/tmux.conf @@ -0,0 +1 @@ +source "/usr/local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf" diff --git a/link/nix/vimrc b/link/nix/vimrc new file mode 100644 index 0000000..4215bae --- /dev/null +++ b/link/nix/vimrc @@ -0,0 +1,35 @@ +execute pathogen#infect() +syntax on + +filetype indent plugin on + +set encoding=utf-8 +set termencoding=utf-8 + +set autoindent +set background=dark +set expandtab +set fillchars+=stl:\ ,stlnc:\ +set laststatus=2 +set nocompatible +set smarttab +set statusline+=%#warningmsg# +set statusline+=%{SyntasticStatuslineFlag()} +set statusline+=%* +set t_Co=256 + +colorscheme solarized + +let g:syntastic_always_populate_loc_list = 1 +let g:syntastic_auto_loc_list = 1 +let g:syntastic_check_on_open = 1 +let g:syntastic_check_on_wq = 0 +let g:syntastic_enable_signs = 1 +let g:syntastic_ruby_checkers = ['rubocop'] +let g:syntastic_quiet_messages = {'level': 'warnings'} +let g:vim_markdown_folding_disabled = 1 + +python from powerline.vim import setup as powerline_setup +python powerline_setup() +python del powerline_setup + diff --git a/link/nix/zshrc b/link/nix/zshrc new file mode 100644 index 0000000..14ea849 --- /dev/null +++ b/link/nix/zshrc @@ -0,0 +1,84 @@ +# Path to your oh-my-zsh installation. +export ZSH=/Users/gliverma/.oh-my-zsh + +# Set name of the theme to load. Optionally, if you set this to "random" +# it'll load a random theme each time that oh-my-zsh is loaded. +# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes +#ZSH_THEME="af-magic" +#ZSH_THEME="pygmalion" +#ZSH_THEME="muse" +ZSH_THEME="beanbag" + +# 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 the following line to disable bi-weekly auto-update checks. +# DISABLE_AUTO_UPDATE="true" + +# Uncomment the following line to change how often to auto-update (in days). +# export UPDATE_ZSH_DAYS=13 + +# 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. +COMPLETION_WAITING_DOTS="false" + +# 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. +# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" +# 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? (plugins can be found in ~/.oh-my-zsh/plugins/*) +# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ +# Example format: plugins=(rails git textmate ruby lighthouse) +# Add wisely, as too many plugins slow down shell startup. +plugins=(brew gem git git-flow history osx python vagrant) + +source $ZSH/oh-my-zsh.sh + +# User configuration + +source ~/.private-env + +# export MANPATH="/usr/local/man:$MANPATH" + +# 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 the ZSH_CUSTOM folder. +# For a full list of active aliases, run `alias`. +# +# Example aliases +# alias zshconfig="mate ~/.zshrc" +# alias ohmyzsh="mate ~/.oh-my-zsh" +#alias ll='ls -G -l' +#alias ls='ls -G' +alias sz='source ~/.zshrc' + +export EDITOR='vim' +export POWERLINE_CONFIG_COMMAND='/usr/local/bin/powerline-config' + +export PATH=$PATH:~/.nexustools +export PATH=$PATH:/Applications/Araxis\ Merge.app/Contents/Utilities + + +# added by travis gem +[ -f /Users/gliverma/.travis/travis.sh ] && source /Users/gliverma/.travis/travis.sh