/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
git clone [email protected]:smridge/dotfiles.git
cd dotfiles
bash ./install.sh
Install vim-plug
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
Make and Copy .vimrc
for Plugins
$ vim
:PlugInstall
- Setup
.dotfiles
- Redo: command Y
- Delete Current Line or Selected Lines: command D D
- Delete everything Left of Cursor for current line: command D L
- Delete everything Right of Cursor for current line: command D R
- Copy Relative Path: command K P
- Highlight Current Word and grow: command H
- Add Cursor to Next Match: shift command down
- Cursor Word Start Right (Next): shift option E
- Cursor Word Start Left (Back): option A
- Copy and Paste current line/selection below: option Y P
- Open settings.json: option J
- Inspect Language Definition/TextMate Scope: option T
- Go to File: command P
- Copy Full Path: command option P
- Cursor Start of Line: control A
- Cursor End of Line: control E
- Transform Upcase: command K U
- Transform downcase: command K L
- Select Line: command L
-
Cant find gem bundler (>= 0.a) with executable bundle
- run:
gem update --system
- https://bundler.io/blog/2019/05/14/solutions-for-cant-find-gem-bundler-with-executable-bundle.html
- run:
-
asdf: No preset version installed for command xyz
- run:
asdf reshim
- also try:
rm -rf ~/.asdf/shims; asdf reshim
- run:
-
bundle update: An error occurred while installing puma
- run bash alias:
redo_xcodetools
- run bash alias:
-
ActiveRecord::ProtectedEnvironmentError: You are attempting to run a destructive action against your 'production' database.
- run:
bundle exec rake db:environment:set RACK_ENV=development
- run:
-
PG::ConnectionBad: FATAL: role "postgres" does not exist
- run:
createuser -s -r postgres
- or see this: https://gist.github.com/ekumachidi/aac9316496fb2ca84dcef00920fede9b
- run:
-
bundle exec rails c
not loading (no error, instead seems to not recognize command)- run:
bin/spring stop
- run:
-
psql:..structure.sql: ERROR: could not open extension control file "../.asdf/installs/postgres/11.8/share/extension/uuid-ossp.control": No such file or directory
- see: https://stackoverflow.com/questions/20810921/cant-use-uuid-and-create-an-extension-to-use-it/51918361#51918361
- should be resolved going forward with option set in
.asdf-postgres-configure-options