Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions 5 .bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ source "$BASH_IT/bash_it.sh"
shopt -s histappend # Append to .bash_history file rather than overwriting

export PATH="$HOME/bin:$PATH"
export PATH="$HOME/go/bin:$PATH"
export PATH="/usr/local/sbin:$PATH"

# eval local ruby version
export PATH="$HOME/.rbenv/shims:$PATH"
eval "$(rbenv init -)"

# Set my editor and git editor
export EDITOR="nvim"
export GIT_EDITOR="nvim"
Expand Down
2 changes: 2 additions & 0 deletions 2 .gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,5 @@
linenumber = true
[http "https://gopkg.in"]
followRedirects = true
[user]
email = 14093193+terminatingcode@users.noreply.github.com
1 change: 0 additions & 1 deletion 1 .vimrc.local.plugins

This file was deleted.

9 changes: 5 additions & 4 deletions 9 Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,40 @@ tap 'homebrew/core'
brew 'ag'
brew 'autojump'
brew 'bash'
brew 'bat'
brew 'coreutils'
brew 'diff-so-fancy'
brew 'direnv'
brew 'fd'
brew 'gdb'
brew 'gh'
brew 'git-crypt'
brew 'go'
brew 'gpg'
brew 'gti'
brew 'hg'
brew 'jq'
brew 'lastpass-cli'
brew 'npm'
brew 'nvim'
brew 'ripgrep'
brew 'shellcheck'
brew 'sshuttle'
brew 'terraform'
brew 'vim'
brew 'wget'
brew 'yq'
brew 'watch'
brew 'tmux'
brew 'postgresql'

cask '1password-cli'
cask 'atom'
cask 'docker'
cask 'flycut'
cask 'gpg-suite'
cask 'iterm2'
cask 'postman'
cask 'virtualbox'
cask 'vagrant'
cask 'visual-studio-code'
cask 'shiftit'

tap 'heroku/brew'
brew 'heroku'
Expand Down
24 changes: 0 additions & 24 deletions 24 bin/import-gpg-key

This file was deleted.

23 changes: 0 additions & 23 deletions 23 bin/load-key

This file was deleted.

8 changes: 0 additions & 8 deletions 8 bin/unload-key

This file was deleted.

36 changes: 22 additions & 14 deletions 36 setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
set -eo pipefail

function update_bash_it {
echo "update bash-it"
git submodule update --init

"$HOME/.bash_it/install.sh" --silent --no-modify-config
Expand All @@ -15,6 +16,7 @@ function update_bash_it {
}

function configure_bash_it {
echo "configure bash-it"
set +e
for completion in bash-it brew docker git ssh terraform; do
bash-it enable completion $completion
Expand All @@ -26,12 +28,14 @@ function configure_bash_it {
}

function ensure_brew_exists {
echo "ensuring brew exists"
if [[ ! -x /usr/local/bin/brew ]] ; then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
}

function update_brew_bundle {
echo "updating brew bundle"
brew update
brew tap Homebrew/bundle

Expand All @@ -45,29 +49,32 @@ function update_brew_bundle {
}

function ensureLatestBashShell {
chsh -s /usr/local/bin/bash
if [[ ! $SHELL = "/usr/local/bin/bash" ]] ; then
echo "changing shell to bash"
if ! grep -q /usr/local/bin/bash /private/etc/shells ; then
echo "adding bash ${bash --version} to /etc/shells"
echo $(brew --prefix)/bin/bash | sudo tee -a /private/etc/shells
fi
chsh -s /usr/local/bin/bash
fi
}

function install_golang {
local version="1.12.6"
echo "installing Go"
local version="1.19.3"
gimme $version
# shellcheck disable=SC1090
source "$HOME/.gimme/envs/go$version.env"
}

function update_luanvim {
function install_luanvim {
echo "Ensuring that we have neovim python plugins..."
pip3 install neovim
echo "Updating luanvim..."
if [[ ! -d "$HOME/.vim" ]] ; then
echo "installing luanvim..."
if [[ ! -d "$HOME/.config/nvim" ]] ; then
git clone https://github.com/luan/vimfiles.git ~/.vim
git clone https://github.com/luan/nvim ~/.config/nvim
fi
(
cd "$HOME/.vim"
git checkout master
git pull -r
~/.vim/update
)
}

function install_cred_alert_cli {
Expand All @@ -80,8 +87,7 @@ function install_cred_alert_cli {
}

function install_ginkgo_gomega {
go get github.com/onsi/ginkgo/ginkgo
go get github.com/onsi/gomega/...
go install github.com/onsi/ginkgo/v2/ginkgo@latest
}

function install_code_extensions {
Expand All @@ -97,9 +103,11 @@ function main {
update_brew_bundle
ensureLatestBashShell
install_golang
update_luanvim
install_luanvim
install_cred_alert_cli
install_ginkgo_gomega

echo "All done 🥳"
}

main
Morty Proxy This is a proxified and sanitized view of the page, visit original site.