Giter VIP home page Giter VIP logo

dotfiles's Introduction

Cold .files

There's my configurations for:

Tmux - Terminal multiplexer, to run multiple shells in the same session.

Neovim - A text editor that works with multiple languages. I use it in my daily work.

Git - A Git VCS configuration for my projects.

Alacritty - Terminal emulator.

Zsh - My default shell.

Bootstrap

This configuration does not provide any shell files to bootstrap it. Instead, you can use following code to bootstrap configurations, which you'll need.

Installation Method: Copy

# Opt-in commentaries in zsh cli
setopt interactivecomments

# Download this repo
git clone https://github.com/tokiory/dotfiles .cdf && \
cd .cdf

# Install neovim
NVIM_PATH="$HOME/.config/nvim"
NVIM_CONFIG="$(pwd)/config/nvim"
test -d $NVIM_PATH && \
cp -r $NVIM_PATH{,_bkp} || \
mkdir -p $NVIM_PATH
cp -r $NVIM_CONFIG $NVIM_PATH

# Install zsh
test -f $HOME/.zshrc && \
mv $HOME/.zshrc{,_bkp}
cp config/zsh/zshrc $HOME/.zshrc

# Install gitconfig
test -f $HOME/.gitconfig && \
mv $HOME/.gitconfig{,_bkp}
cp config/git/gitconfig $HOME/.gitconfig

# Install tmux
test -f $HOME/.tmux.conf && \
mv $HOME/.tmux.conf{,_bkp}
cp config/tmux/tmux.conf $HOME/.tmux.conf

# Install alacritty
test -d $HOME/.config/alacritty && \
cp -r $HOME/.config/alacritty{,_bkp} || \
mkdir -p $HOME/.config/alacritty
cp -r config/alacritty $HOME/.config/alacritty

Installation Method: Link

If you wanna link this repo folder to your local configuration folders, use following command:

# Opt-in commentaries in zsh cli
setopt interactivecomments

# Download this repo
git clone https://github.com/tokiory/dotfiles .cdf && \
cd .cdf

# Global variables
CONFIG_FOLDER="$HOME/.config"

### Link neovim
NVIM_PATH="$HOME/.config/nvim"
NVIM_CONFIG="$(pwd)/config/nvim"
### {{{
test -d $NVIM_PATH && \
    mv $NVIM_PATH{,_bkp} || \
    mkdir -p $NVIM_PATH
ln -sF $NVIM_CONFIG $CONFIG_FOLDER
### }}}

### Link zshconfig
ZSH_PATH="$HOME/.zshrc"
ZSH_CONFIG="$(pwd)/config/zsh/zshrc"
### {{{
test -f $ZSH_PATH && \
    mv $ZSH_PATH{,_bkp}
ln -sF $ZSH_CONFIG $ZSH_PATH
### }}}

### Link gitconfig
GITCONFIG_PATH="$HOME/.gitconfig"
GITCONFIG_CONFIG="$(pwd)/config/git/gitconfig"
### {{{
test -f $HOME/.gitconfig && \
    mv $HOME/.gitconfig{,_bkp}
ln -sF $(pwd)/config/git/gitconfig $HOME/.gitconfig
### }}}

### Install tmux
TMUX_PATH="$HOME/.tmux.conf"
TMUX_CONFIG="$(pwd)/config/tmux/tmux.conf"
### {{{
test -f $HOME/.tmux.conf && \
    mv $HOME/.tmux.conf{,_bkp}
ln -sF $(pwd)/config/tmux/tmux.conf $HOME/.tmux.conf
### }}}

### Install alacritty
ALACRITTY_PATH="$HOME/.config/alacritty"
ALACRITTY_CONFIG="$(pwd)/config/alacritty"
### {{{
test -d $HOME/.config/alacritty && \
    mv $HOME/.config/alacritty{,_bkp} || \
    mkdir -p $HOME/.config/alacritty
ln -sF $(pwd)/config/alacritty $CONFIG_FOLDER
### }}}

dotfiles's People

Contributors

tokiory 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.