• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

geeksam/dotfiles: bash customization

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

geeksam/dotfiles

开源软件地址:

https://github.com/geeksam/dotfiles

开源编程语言:

Vim Script 42.7%

开源软件介绍:

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



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap