Giter Site home page Giter Site logo

dotfiles's Introduction

License: CC0-1.0

dotfiles

Setup and configuration

Dotfiles make use of a bare git repository, i.e. the git repo data is not stored as part of the working directory. Therefor an alias is defined that is a wrapper around the git command and setting the --git-dir and --work-dir to different locations.

Start by setting up an alias for working with a bare repository:

alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'

Configure the repository to not track files. If file tracking is allowed you will see all untracked files in your root and that's probably a lot.

dotfiles config --local status.showUntrackedFiles no

Checking out the dotfiles is done by:

mkdir $HOME/.dotfiles
dotfiles init
dotfiles config --global init.defaultBranch main
dotfiles remote add origin [email protected]:venekamp/dotfiles.git
dotfiles pull origin main

Base16 shell colour theme

In order to get a better colour theme for the shell, check out the following repo. The zshell configuration is configured to use themes from base16

git clone https://github.com/chriskempson/base16-shell.git ~/.config/base16-shell

Z Shell

  • Add auto completion
  • Add Homwbrew support
  • alias ls='ls --color'
  • alias ll='ls -ls'
  • alias la='ls -lsa'
  • Use nvim: alias vim=nvim
  • Theming: base 16
  • Setup git for dotfiles: dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'

Install Homebrew for additional packages

Install npm

Some neovim plugins require npm to be installed:

brew install npm

Neovim

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.