All Projects → geeksam → dotfiles

geeksam / dotfiles

Licence: other
bash customization

Programming Languages

Vim Script
2826 projects
perl
6916 projects
shell
77523 projects
ruby
36898 projects - #4 most used programming language
Vim Snippet
174 projects

These are my dotfiles. There are many like them, but these ones are mine.

Notes to Future Sams:

New computer?

  • clone this repo to ~/dotfiles
  • cd dotfiles
  • Set up shell helpers, aliases, config files, and so on:
    • ./symlink_all_the_things
  • Make sure homebrew is installed: https://brew.sh/
  • brew install macvim to get a reasonable version of Vim
  • brew install thefuck because it's funny and useful
  • brew install bat
  • Launch vim and run :PlugInstall
  • Install some Ruby version manager (probably rbenv):
    • RVM: http://rvm.io/
    • rbenv: https://github.com/rbenv/rbenv
    • asdf:
      • brew install asdf
      • brew install openssl libyaml libffi (required by the asdf-ruby plugin; note that this may cause some Ruby Woes below)
      • asdf plugin-add ruby https://github.com/asdf-vm/asdf-ruby.git
  • Install some Python version manager:
    • pyenv: brew install pyenv

Ruby Woes

Trouble getting Ruby's mysql2 gem to build properly?

You probably need to add a few hints about where stuff is. (Obviously, double-check the paths below; new computers may not need to run MySQL 5.6, for example.)

  • If mysql_config can't be found, try adding: -- --with-mysql-config=/usr/local/opt/[email protected]/bin/mysql_config
  • If -lss can't be linked, try adding: -- --with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include

Python Woes

None of my Vim Python tools work!

  • Install 'pyenv' (if you haven't already)
  • Use pyenv to install a Python 3 (probably 3.6+).
  • Make that Python the defaut using, e.g., 'pyenv global 3.8.1'
  • Restart Vim
  • Hope that works, because that's all I got right now... -me, Jan 2020

--

Clever ideas I could possibly implement at some point:

  • add an indicator to the prompt showing whether the last command had an exit status of 0
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].