Skip to content

smridge/dotfiles

Repository files navigation

GitHub

Basics

Install Brew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Set Bash as Default

Download/Install Necessities

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

Install Chrome Extensions

Other

  • Setup .dotfiles

Tool References

VS Code Keybindings

Custom

  • 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

Default

  • 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

Troubleshooting

  • Cant find gem bundler (>= 0.a) with executable bundle

  • asdf: No preset version installed for command xyz

    • run: asdf reshim
    • also try: rm -rf ~/.asdf/shims; asdf reshim
  • bundle update: An error occurred while installing puma

    • run bash alias: redo_xcodetools
  • ActiveRecord::ProtectedEnvironmentError: You are attempting to run a destructive action against your 'production' database.

    • run: bundle exec rake db:environment:set RACK_ENV=development
  • PG::ConnectionBad: FATAL: role "postgres" does not exist

    • run: createuser -s -r postgres
    • or see this: https://gist.github.com/ekumachidi/aac9316496fb2ca84dcef00920fede9b
      psql -U postgres
      
      postgres=# create user <username>;
      CREATE ROLE
      postgres=# alter user <username> superuser createdb;
      ALTER ROLE
      postgres=# \du
                                          List of roles
      Role name  |                         Attributes                         | Member of
      ------------+------------------------------------------------------------+-----------
      postgres   | Superuser, Create role, Create DB, Replication, Bypass RLS | {}
      <username> | Superuser, Create DB                                       | {}
      
    
    
  • bundle exec rails c not loading (no error, instead seems to not recognize command)

    • run: bin/spring stop
  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published