GithubHelp home page GithubHelp logo

dotfiles's Introduction

Checkout this repo

alias dotfiles="$(which git) --git-dir='$HOME/.dotfiles' --work-tree='$HOME'"
git clone --bare <repo-clone-url> $HOME/.dotfiles
dotfiles checkout
dotfiles submodule update --init --recursive

Creating your own

echo alias dotfiles="$(which git) --git-dir='$HOME/.dotfiles' --work-tree='$HOME'" >> ~/.bashrc
git init --bare $HOME/.dotfiles

Dependencies

Universal Ctags

Available from: https://github.com/universal-ctags/ctags

Recommended to install into your local prefix if it is not available in your repos and prefixing the name with a u to prevent colliding. This can be done with ./configure --prefix=$HOME/.local --program-prefix=u

rust-analyzer

Available from: https://github.com/rust-lang/rust-analyzer

Can be installed easil with cargo xtask install --server which places it into ~/.cargo/bin. Alternatively, build it manually and install it into ~/.local/bin

clang/clangd/clang-format

Requires clang, clang++, clangd, and clang-format be installed. clangd will automatically give lint suggestions if compile_commands.json is present in the top level directory. If using cmake it is suggested to symlink build_commands.json to _build/build_commands.json. clang-format will attempt to use a .clang-format file in the current directory. To use the LLVM default remove the ale_c_clangformat_options key from ftplugin/cpp.vim

Note

On some distributions clang is provided with versioned names (i.e. clang++-12) but these scripts assume these binaries are unversioned names. To address this create links for clang/clang++/clang-format.

Shell

Requires shellcheck

Using

Once you have checked out or created a repo it can be used exactly like any other git repo except through the dotfiles alias. For instace dotfiles add .vimrc && dotfiles commit.

It is advisable to ignore files by default to keep the git information clean and simple. dotfiles config --local status.showUntrackedFiles no

dotfiles's People

Contributors

will459 avatar

Watchers

 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.