From 1fdd7955ecbc00c73c08521028da9a7c70ad12fe Mon Sep 17 00:00:00 2001 From: Andrew Miner Date: Mon, 1 Nov 2021 14:57:12 -0600 Subject: [PATCH] Various small changes --- home/.gvimrc | 2 +- home/.profile | 11 +++++++++++ home/.vimrc | 5 ++++- home/bin/quake | 3 +++ home/bin/reset-postgresql | 5 +++++ home/bin/tmux-2w | 3 +++ install.sh | 10 +++++----- 7 files changed, 32 insertions(+), 7 deletions(-) create mode 100755 home/bin/quake create mode 100755 home/bin/reset-postgresql create mode 100644 home/bin/tmux-2w diff --git a/home/.gvimrc b/home/.gvimrc index 33ee1fd..bfddde8 100644 --- a/home/.gvimrc +++ b/home/.gvimrc @@ -1,3 +1,3 @@ :set lines=81 :set columns=156 -:set guifont=Source\ Code\ Pro:h13 +:set guifont=Source\ Code\ Variable\ Semibold:h13 diff --git a/home/.profile b/home/.profile index 71b1512..5a666fc 100644 --- a/home/.profile +++ b/home/.profile @@ -16,6 +16,9 @@ alias tmux='TERM=xterm-256color /usr/local/bin/tmux' # Git Config source ~/bin/git-completion.sh +# Java Config +export PATH="/usr/local/opt/openjdk@11/bin:$PATH" + # Go Config export GOPATH=/src/go export GOBIN=/src/go/bin @@ -23,8 +26,16 @@ export PATH=$PATH:$GOBIN # NodeJS Config export PATH=$PATH:$HOME/node_modules/.bin +export NVM_DIR="$HOME/.nvm" +mkdir -p $NVM_DIR &>/dev/null +[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" +[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # Python Config +export PYENV_ROOT="$HOME/.pyenv" +export PATH="$PYENV_ROOT/bin:$PATH" +eval "$(pyenv init --path)" +eval "$(pyenv init -)" export PYTHONSTARTUP="$(python -m jedi repl)" # Ruby Config diff --git a/home/.vimrc b/home/.vimrc index 625ca0f..bee3d6d 100644 --- a/home/.vimrc +++ b/home/.vimrc @@ -64,14 +64,17 @@ set colorcolumn=120 set cursorline set diffopt=filler,vertical set expandtab -set nohlsearch set incsearch set laststatus=2 set list set listchars=tab:>- set modelines=2 +set nobackup set nofoldenable +set nohlsearch +set noswapfile set nowrap +set nowritebackup set number set path=** set ruler diff --git a/home/bin/quake b/home/bin/quake new file mode 100755 index 0000000..51c7da8 --- /dev/null +++ b/home/bin/quake @@ -0,0 +1,3 @@ +#!/bin/bash + +/Applications/Quake\ III\ Arena/Quake.sh diff --git a/home/bin/reset-postgresql b/home/bin/reset-postgresql new file mode 100755 index 0000000..d6b3f34 --- /dev/null +++ b/home/bin/reset-postgresql @@ -0,0 +1,5 @@ +#!/bin/bash + +brew services stop postgresql +rm /usr/local/var/postgres/postmaster.pid +brew services start postgresql diff --git a/home/bin/tmux-2w b/home/bin/tmux-2w new file mode 100644 index 0000000..4b3d4bf --- /dev/null +++ b/home/bin/tmux-2w @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +if tmux list-sessions diff --git a/install.sh b/install.sh index d889d6c..59ced91 100755 --- a/install.sh +++ b/install.sh @@ -43,17 +43,17 @@ which -s gcc || brew install gcc which -s go || brew install go which -s heroku || (brew tap heroku/brew && brew install heroku) which -s node || brew install node -which -s python3 || brew install python3 +which -s pyenv || brew install pyenv which -s rbenv || brew install rbenv which -s tmux || brew install tmux which -s watch || brew install watch which -s wget || brew install wget which -s reattach-to-user-namespace || brew install reattach-to-user-namespace -pushd /usr/local/bin >/dev/null - ln -sf pip3 pip - ln -sf python3 python -popd >/dev/null +pyenv install python3.7.7 +pyenv shell python3.7.7 +pip install --upgrade pip +pip install jedi echo "Installing standard NPM packages..." which -s browserify || npm install -g browserify