diff --git a/README.md b/README.md index 192a62c..f101b8d 100644 --- a/README.md +++ b/README.md @@ -4,5 +4,4 @@ This is a collection of items I use when I setup a fresh install. # Docker # dotfiles -# GoLang -# Ruby + Rails + diff --git a/dotfiles/_ARCHIVE/install-old b/dotfiles/_ARCHIVE/install-old deleted file mode 100755 index e39f6db..0000000 --- a/dotfiles/_ARCHIVE/install-old +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/env zsh -# A script for installing dependencies and setting up needed Symbolic Links -# Created by Jeremy Winterberg, Brandon Roehl, Blake Ridgway -# Updated 07/27/2019 -# NOTICE: Modify script to your own preferences! This mostly uses default -# locations, but can be changed to whatever you need. - -git submodule init -git submodule update --recursive - -if [ hash brew >/dev/null 2>&1 ] -then - echo 'Attempting to install brew' - if [ uname = "Darwin" ] - then - /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" - else - sudo apt-get install build-essential curl git python-setuptools ruby - ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install)" - fi -fi - -brew install zsh git coreutils vim tmux wget bash the_silver_searcher reattach-to-user-namespace zsh-syntax-highlighting - -# Check if Oh My ZSH is installed -if ! [ -d "$HOME/.oh-my-zsh/" ]; then - echo >&2 "oh-my-zsh is not installed, fixing that..."; - curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh -fi - -echo 'install rust' -curl https://sh.rustup.rs -sSf | sh - -echo 'grab ruby installer' -git clone https://github.com/blakeridgway/ruby-install.git ~/ruby-install - -# Fancy ls script taken from github.com/brandonroehl/dotfiles -files=( 'vimrc' 'vim' 'zshrc' 'zsh' 'tmux.conf' 'tmux-dev.sh' 'tmux-osx' 'agignore' 'gitconfig' 'gitignore' 'gitmessage' 'gemrc' 'rspec' 'eslintrc' ) -for file in $files -do - echo "" - echo "Simlinking $file to $HOME" - ln -sf "$PWD/$file" "$HOME/.$file" - if [ $? -eq 0 ] - then - echo "$PWD/$file ~> $HOME/.$file" - else - echo 'Install failed to symlink.' - exit 1 - fi -done diff --git a/dotfiles/eslintrc b/dotfiles/eslintrc deleted file mode 100755 index c4af6c0..0000000 --- a/dotfiles/eslintrc +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parser": "babel-eslint", - "env": { - "browser": true, - "node": true - }, - "settings": { - "ecmascript": 6, - "jsx": true - }, - "plugins": [ - "react" - ], - "rules": { - "strict": 0, - "quotes": 0, - "no-unused-vars": 0, - "camelcase": 0, - "no-underscore-dangle": 0 - } -} diff --git a/dotfiles/eslintrc.txt b/dotfiles/eslintrc.txt deleted file mode 100755 index 8ea8356..0000000 --- a/dotfiles/eslintrc.txt +++ /dev/null @@ -1,133 +0,0 @@ -{ - "extends": [ - "airbnb", - "prettier", - "prettier/react" - ], - "parser": "babel-eslint", - "parserOptions": { - "ecmaVersion": 8, - "ecmaFeatures": { - "experimentalObjectRestSpread": true, - "impliedStrict": true, - "classes": true - } - }, - "env": { - "browser": true, - "node": true, - "jquery": true, - "jest": true - }, - "rules": { - "no-debugger": 0, - "no-alert": 0, - "no-await-in-loop": 0, - "no-restricted-syntax": [ - 2, - "ForInStatement", - "LabeledStatement", - "WithStatement" - ], - "no-unused-vars": [ - 1, - { - "ignoreSiblings": true, - "argsIgnorePattern": "res|next|^err" - } - ], - "prefer-const": [ - "error", - { - "destructuring": "all", - } - ], - "arrow-body-style": [ - 2, - "as-needed" - ], - "no-unused-expressions": [ - 2, - { - "allowTaggedTemplates": true - } - ], - "no-param-reassign": [ - 2, - { - "props": false - } - ], - "no-console": 0, - "import/prefer-default-export": 0, - "import": 0, - "func-names": 0, - "space-before-function-paren": 0, - "comma-dangle": 0, - "max-len": 0, - "import/extensions": 0, - "no-underscore-dangle": 0, - "consistent-return": 0, - "react/display-name": 1, - "react/no-array-index-key": 0, - "react/react-in-jsx-scope": 0, - "react/prefer-stateless-function": 0, - "react/forbid-prop-types": 0, - "react/no-unescaped-entities": 0, - "jsx-a11y/accessible-emoji": 0, - "react/require-default-props": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "radix": 0, - "no-shadow": [ - 2, - { - "hoist": "all", - "allow": [ - "resolve", - "reject", - "done", - "next", - "err", - "error" - ] - } - ], - "quotes": [ - 2, - "single", - { - "avoidEscape": true, - "allowTemplateLiterals": true - } - ], - "prettier/prettier": [ - "error", - { - "trailingComma": "es5", - "singleQuote": true, - "printWidth": 80, - } - ], - "jsx-a11y/href-no-hash": "off", - "jsx-a11y/anchor-is-valid": [ - "warn", - { - "aspects": [ - "invalidHref" - ] - } - ] - }, - "plugins": [ - // "html", - "prettier" - ] -} diff --git a/dotfiles/gemrc b/dotfiles/gemrc deleted file mode 100755 index 154cd47..0000000 --- a/dotfiles/gemrc +++ /dev/null @@ -1 +0,0 @@ -gem: --no-document diff --git a/dotfiles/gitmessage b/dotfiles/gitmessage deleted file mode 100755 index 76fd0d7..0000000 --- a/dotfiles/gitmessage +++ /dev/null @@ -1,11 +0,0 @@ - - -# 50-character subject line -# -# 72-character wrapped longer description. This should answer: -# -# * Why was this change necessary? -# * How does it address the problem? -# * Are there any side effects? -# -# Include a link to the ticket, if any. diff --git a/dotfiles/img/karabinersettings.png b/dotfiles/img/karabinersettings.png deleted file mode 100755 index 2d1279d..0000000 Binary files a/dotfiles/img/karabinersettings.png and /dev/null differ diff --git a/dotfiles/install b/dotfiles/install deleted file mode 100755 index 85a9d3a..0000000 --- a/dotfiles/install +++ /dev/null @@ -1,55 +0,0 @@ -#!/usr/bin/env zsh -# A script for installing dependencies and setting up needed Symbolic Links -# Created by Jeremy Dwayne -# Modified by Blake Ridgway -# Updated 02/13/2021 -# NOTICE: Modify script to your own preferences! This mostly uses default -# locations, but can be changed to whatever you need. - -git submodule init -git submodule update --recursive - -# Installs tilix -sudo apt install tilix - -# SSH Key Gen -ssh-keygen -t ed25519 -C "blake@blakeridgway.dev" - -# Oh My ZSH is installer -sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" - -# POWERLEVEL10K -git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k - -# Copy p10k Config file -cp .p10k.zsh ~/ - -# Grabs Nerd Font and configures it -wget https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/Hack/Regular/complete/Hack%20Regular%20Nerd%20Font%20Complete.ttf -mkdir -p ~/.local/share/fonts -cp Hack\ Regular\ Nerd\ Font\ Complete.ttf ~/.local/share/fonts/ -fc-cache -f -v - -# Grabs and downloads Go for Google -wget https://golang.org/dl/go1.16.4.linux-amd64.tar.gz -sudo tar -C /usr/local -xzf go1.16.4.linux-amd64.tar.gz - -# Install Rust -# echo 'install rust' -# curl https://sh.rustup.rs -sSf | sh - -# Fancy ls script taken from github.com/brandonroehl/dotfiles -files=( 'vimrc' 'vim' 'zshrc' 'zsh' 'agignore' 'gitconfig' 'gitignore' 'gitmessage' 'gemrc' 'rspec' 'eslintrc' ) -for file in $files -do - echo "" - echo "Simlinking $file to $HOME" - ln -sf "$PWD/$file" "$HOME/.$file" - if [ $? -eq 0 ] - then - echo "$PWD/$file ~> $HOME/.$file" - else - echo 'Install failed to symlink.' - exit 1 - fi -done diff --git a/dotfiles/rspec b/dotfiles/rspec deleted file mode 100755 index edec62c..0000000 --- a/dotfiles/rspec +++ /dev/null @@ -1,2 +0,0 @@ ---colour ---order random diff --git a/dotfiles/scripts/CTemplate.sh b/dotfiles/scripts/CTemplate.sh deleted file mode 100755 index a102124..0000000 --- a/dotfiles/scripts/CTemplate.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -cp ~/.dotfiles/scripts/files/CTemplate.c $1.c diff --git a/dotfiles/scripts/MDtoPDF.sh b/dotfiles/scripts/MDtoPDF.sh deleted file mode 100755 index d16599c..0000000 --- a/dotfiles/scripts/MDtoPDF.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -markdown_py -o html5 $1.md > $1.html -if [ "$2" = null ]; then - wkhtmltopdf --page-size letter -B 20mm -T 20mm -L 20mm -R 20mm $1.html $1.pdf -else - if [ ! -d "$2" ]; then - mkdir $2 - fi - wkhtmltopdf --page-size letter -B 20mm -T 20mm -L 20mm -R 20mm $1.html $2/$1.pdf -fi - rm -f $1.html diff --git a/dotfiles/scripts/ProjectLayout.sh b/dotfiles/scripts/ProjectLayout.sh deleted file mode 100755 index 4718cef..0000000 --- a/dotfiles/scripts/ProjectLayout.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -mkdir $1 -cd $1/ -touch LICENSE README.md -# cp files/Makefile . -mkdir bin src tests diff --git a/dotfiles/scripts/files/CTemplate.c b/dotfiles/scripts/files/CTemplate.c deleted file mode 100755 index 1ed6b12..0000000 --- a/dotfiles/scripts/files/CTemplate.c +++ /dev/null @@ -1,10 +0,0 @@ -/* Template.c */ - -#include -#include - -int main(int argc, char *argv[]) -{ - - return EXIT_SUCCESS; -} diff --git a/dotfiles/scripts/files/Makefile b/dotfiles/scripts/files/Makefile deleted file mode 100755 index e56f77a..0000000 --- a/dotfiles/scripts/files/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -CC= gcc -CFLAGS= -Wall -std=gnu99 -LDFLAGS= -LIBS= -lm -SOURCE= $(wildcard *.c) -PROGRAMS= $(SOURCE:.c=) - -all: $(PROGRAMS) - -%:%.c - $(CC) $(CFLAGS) -o $@ $^ $(LIBS) - -clean: - rm -f $(PROGRAMS) - -test: - diff --git a/dotfiles/scripts/files/tmux.png b/dotfiles/scripts/files/tmux.png deleted file mode 100755 index a748230..0000000 Binary files a/dotfiles/scripts/files/tmux.png and /dev/null differ diff --git a/dotfiles/scripts/tmux-dev.sh b/dotfiles/scripts/tmux-dev.sh deleted file mode 100755 index 82d330a..0000000 --- a/dotfiles/scripts/tmux-dev.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/zsh -t="temp" - -if [ -z "$1" ]; -then - set -- $t -fi -if [ -z "$2" ]; -then - set -- "$1" "$PWD" -fi - -# sets current directory as default path -tmux set-option default-path "$PWD" - -# Creates session, and names window DEV -tmux new-session -d -s $1 -c $2 -tmux rename-window 'DEV' -tmux split-window -v -p 50 -c $2 - -# Creates second window named SERVER -tmux new-window -a -d -n 'SERVER' -c $2 -tmux select-window -t 2 -tmux split-window -v -p 50 -c $2 -tmux select-window -t 1 -tmux select-pane -t 1 - -# Attaches to tmux session -tmux attach-session -t $1 - -# tmux -u new-session -d -s dev -n ide -# tmux split-window -v -p 10 -t dev -# tmux select-pane -t 1 -# tmux split-window -h -p 30 -t dev -# tmux new-window -n shell -# tmux select-window -t dev:1 -# tmux select-pane -t 1 -# tmux -2 attach-session -t dev diff --git a/dotfiles/templates/c b/dotfiles/templates/c deleted file mode 100755 index 84dc44c..0000000 --- a/dotfiles/templates/c +++ /dev/null @@ -1,7 +0,0 @@ -#include -#include - -int main(int argc, char **argv) { - CURSOR - return 0; -} diff --git a/dotfiles/templates/cpp b/dotfiles/templates/cpp deleted file mode 100755 index 76dc397..0000000 --- a/dotfiles/templates/cpp +++ /dev/null @@ -1,8 +0,0 @@ -#include - -using std::string; - -int main(int argc, char **argv) { - CURSOR - return 0; -} diff --git a/dotfiles/templates/h b/dotfiles/templates/h deleted file mode 100755 index 80ab5cb..0000000 --- a/dotfiles/templates/h +++ /dev/null @@ -1,4 +0,0 @@ -#ifndef FILE_H -#define FILE_H - CURSOR -#endif diff --git a/dotfiles/templates/html b/dotfiles/templates/html deleted file mode 100755 index 7d99273..0000000 --- a/dotfiles/templates/html +++ /dev/null @@ -1,9 +0,0 @@ - - - - ... - - - CURSOR - - diff --git a/dotfiles/templates/java b/dotfiles/templates/java deleted file mode 100755 index de6e54c..0000000 --- a/dotfiles/templates/java +++ /dev/null @@ -1,3 +0,0 @@ -public class CLASS { - CURSOR -} diff --git a/dotfiles/templates/py b/dotfiles/templates/py deleted file mode 100755 index 4299cdb..0000000 --- a/dotfiles/templates/py +++ /dev/null @@ -1,10 +0,0 @@ -""" -CURSOR -""" - - -def main(): - pass - - -main() diff --git a/dotfiles/templates/s b/dotfiles/templates/s deleted file mode 100755 index c1c9193..0000000 --- a/dotfiles/templates/s +++ /dev/null @@ -1,5 +0,0 @@ -.text -.global main - -main: - CURSOR diff --git a/dotfiles/tmux-osx.conf b/dotfiles/tmux-osx.conf deleted file mode 100755 index 624202c..0000000 --- a/dotfiles/tmux-osx.conf +++ /dev/null @@ -1,16 +0,0 @@ -# Copy-paste integration -set-option -g default-command "reattach-to-user-namespace -l zsh" - -# Use vim keybindings in copy mode -setw -g mode-keys vi - -# Setup 'v' to begin selection as in Vim -bind-key -T copy-mode-vi v send-keys -X begin-selection -bind-key -T copy-mode-vi y send-keys -X copy-pipe "reattach-to-user-namespace pbcopy" - -# Update default binding of `Enter` to also use copy-pipe -unbind -T copy-mode-vi Enter -bind-key -T copy-mode-vi Enter send-keys -X copy-pipe "reattach-to-user-namespace pbcopy" - -# Bind ']' to use pbpaste -bind ] run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer" diff --git a/dotfiles/tmux.conf b/dotfiles/tmux.conf deleted file mode 100755 index 6d172ff..0000000 --- a/dotfiles/tmux.conf +++ /dev/null @@ -1,158 +0,0 @@ -# improve colors -# set -g utf8 -# set-window-option -g utf8 on - -# Add truecolor support -set-option -ga terminal-overrides ",xterm-256color:Tc" -# Default terminal is 256 colors -set -g default-terminal "screen-256color" - -set -s escape-time 0 - -# act like vim -setw -g mode-keys vi -bind h select-pane -L -bind j select-pane -D -bind k select-pane -U -bind l select-pane -R -bind-key -r C-h select-window -t :- -bind-key -r C-l select-window -t :+ - -set -g prefix2 C-a -bind-key -n C-b send-prefix - -# start window numbers at 1 to match keyboard order with tmux window order -set -g base-index 1 -set-window-option -g pane-base-index 1 - -# renumber windows sequentially after closing any of them -set -g renumber-windows on - -# soften status bar color from harsh green to light gray -set -g status-bg '#666666' -set -g status-fg '#aaaaaa' - -# remove administrative debris (session name, hostname, time) in status bar -set -g status-left '' -set -g status-right '' - -# increase scrollback lines -set -g history-limit 10000 - -# prefix -> back-one-character -bind-key C-b send-prefix -# prefix-2 -> forward-incremental-history-search -bind-key C-s send-prefix -2 - -set -g mouse on - -# if-shell "uname | grep -q Darwin" "source-file ~/.dotfiles/tmux-osx.conf" - -set-option -g default-shell /bin/zsh - -# Bind ']' to use pbpaste -bind ] run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer" - -bind-key -T copy-mode-vi v send-keys -X begin-selection -bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle -bind-key -T copy-mode-vi y send-keys -X copy-selection -bind-key -T copy-mode-vi H send-keys -X start-of-line -bind-key -T copy-mode-vi L send-keys -X end-of-line -bind-key -T choice-mode-vi h send-keys -X tree-collapse -bind-key -T choice-mode-vi l send-keys -X tree-expand -bind-key -T choice-mode-vi H send-keys -X tree-collapse-all -bind-key -T choice-mode-vi L send-keys -X tree-expand-all -bind-key -T copy-mode-emacs MouseDragEnd1Pane send-keys -X copy-pipe "reattach-to-user-namespace pbcopy" -bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe "reattach-to-user-namespace pbcopy" -# bind-key -T vi-copy v begin-selection -# bind-key -T vi-copy C-v rectangle-toggle -# bind-key -T vi-copy y copy-selection -# bind-key -T vi-choice h tree-collapse -# bind-key -T vi-choice l tree-expand -# bind-key -T vi-choice H tree-collapse-all -# bind-key -T vi-choice L tree-expand-all -# bind-key -T emacs-copy MouseDragEnd1Pane copy-pipe "reattach-to-user-namespace pbcopy" -# bind-key -T vi-copy MouseDragEnd1Pane copy-pipe "reattach-to-user-namespace pbcopy" - -# resize panes -bind -n S-Left resize-pane -L 2 -bind -n S-Right resize-pane -R 2 -bind -n S-Down resize-pane -D 1 -bind -n S-Up resize-pane -U 1 - -set-option -g allow-rename off - - -## Status bar design -# status line -set -g status-justify centre -set -g status-bg default -set -g status-fg cyan -set -g status-interval 1 - -# messaging -# set -g message-fg black -# set -g message-bg yellow -# set -g message-command-fg blue -# set -g message-command-bg black - -#window mode -# setw -g mode-bg cyan -# setw -g mode-fg white - -# The modes -set -g clock-mode-colour colour45 -set -g clock-mode-style 12 -# setw -g mode-attr none -# setw -g mode-fg colour16 -# setw -g mode-bg colour184 - -# The panes -# set -g pane-border-bg colour245 -# set -g pane-border-fg colour245 -# set -g pane-active-border-bg colour45 -# set -g pane-active-border-fg colour45 - -# The statusbar -set -g status-position bottom -set -g status-bg colour235 -set -g status-fg colour254 -# set -g status-attr none -set -g status-left '#[bold]#{?client_prefix,#[fg=colour220],#[fg=colour207]} #{pane_current_command}#[default] #S [#P] ' -set -g status-right ' #(battery-prompt tmux) #[fg=colour034]%a %b %e #[fg=colour082,bold]%l:%M:%S #[none]%p ' -set -g status-right-length 50 -set -g status-left-length 50 - -# setw -g window-status-current-fg colour45 -# setw -g window-status-current-bg colour196 -# setw -g window-status-current-attr bold -setw -g window-status-current-format ' #I:#W ' - -# setw -g window-status-fg colour245 -# setw -g window-status-bg colour240 -# setw -g window-status-attr none -setw -g window-status-format ' #I:#W ' - -# setw -g window-status-bell-attr bold -# setw -g window-status-bell-fg colour255 -# setw -g window-status-bell-bg colour15 - -# The messages -# set -g message-attr none -# set -g message-fg colour87 -# set -g message-bg colour235 - -# -- display ------------------------------------------------------------------- - -set-window-option -g automatic-rename on -set-option -g allow-rename off -set -g base-index 1 -set -g pane-base-index 1 -set -g automatic-rename-format '#(basename #{pane_current_path})' -set -g renumber-windows on -set -g set-titles on -set -g set-titles-string '#{pane_current_path} #S:#I — #{pane_current_command}' - -# activity -set -g monitor-activity on -set -g visual-activity on diff --git a/dotfiles/wallpaper/981849.png b/dotfiles/wallpaper/981849.png deleted file mode 100644 index e07239d..0000000 Binary files a/dotfiles/wallpaper/981849.png and /dev/null differ diff --git a/dotfiles/wallpaper/981883.jpg b/dotfiles/wallpaper/981883.jpg deleted file mode 100644 index 3d666f9..0000000 Binary files a/dotfiles/wallpaper/981883.jpg and /dev/null differ