Coder Social home page Coder Social logo

dotfiles's Introduction

My dot files

Here are my dot files

See https://github.com/andyneff/dot_core for more info, including how to use this pattern for yourself.

Setting up on a new computer

  1. git clone https://github.com/NoahRJohnson/dotfiles.git ~/.dotfiles
  2. ~/.dotfiles/install.bsh

All files in the files/ directory will be symlinked into your host computer.

Terminal Emulator

Make sure your terminal supports 24-bit color.

The install script will install Sauce Code Pro, the Nerd Font version of Source Code Pro. Open your terminal's preferences and change the font to Sauce Code Pro.

Depending on your terminal emulator you'll have different ways to download color schemes. If you're using Tilix then just follow the directions here. I recommend Zenburn.

Zsh

Install with your package manager, e.g.:

sudo dnf install zsh

Install Oh My ZSH for configuring zsh.

The zshrc in this repo adds git, tmux, vi-mode, and web search support via plugins. Just type 'google $TERM' to open a browser searching google for $TERM.

Vim

Most distros already have vim installed.

Vim-plug should be automatically downloaded when you first run vim with this vimrc. Run :PlugInstall from inside a vim instance to install plugins.

Linting

Install flake8 to support Vim python linting.

YouCompleteMe

For every cpp project, add the line

set(CMAKE_EXPORT_COMPILE_COMMANDS "ON")

to your CMakeLists.txt CMake file. This will generate a compile_commands.json file when you run cmake. Copy that file into your project root. YCM will then automatically load this clang compilation database when you run vim.

Tmuxinator

A tool for automating tmux setup.

Run setup_tmuxinator.bsh to install gem and tmuxinator.

This will ensure you get the most up-to-date version. Check that it was set up correctly by running:

mux doctor

You should see all "YES".

For every project you're working on create a ".tmuxinator.yml" file in your project root. "tmuxinator.yml" is an example file for you to start from. Modify it as needed, then start your project from the project root with

mux

which will load the local file and set up your tmux session with the name specified in the .yml configuration file. From here on out you can interact normally with this session through tmux. The default way to exit tmux is "Ctrl-b d". "mux" can also be used to re-attach to a session.

To kill a session, run

mux stop .

from the project root.

I've yet to figure out how to allow

mux ls
mux start $PROJECT_NAME
mux stop $PROJECT_NAME

to work when using local config files like this. Personally I'm ok with always having to navigate to a project's root to start the tmux dev environment. If you aren't look into symbolically linking the local files to ~/.tmuxinator/.yml

dotfiles's People

Contributors

noahrjohnson avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.