Giter Club home page Giter Club logo

dotfiles's Introduction

Dotfiles

Prerequisites

  • i3-wm
  • picom
  • alacritty
  • spotify
  • feh
  • i3lock
  • i3bar
  • i3blocks
  • playerctl
  • flameshot
  • vim
  • tmux
  • fzf
  • git
  • virtualenv
  • golang
  • docker
  • neovim (https://github.com/NvChad/NvChad)

bashrc

Add this

# useful functions
function mkcd(){
mkdir $1
cd $1
}

function td(){
directory=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
mkdir /tmp/$directory
cd /tmp/$directory
}

function tf(){
file=tf-$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 5 | head -n 1)
vim /tmp/$file
echo $file
}

function cl() {
    DIR="$*";
        # if no DIR given, go home
        if [ $# -lt 1 ]; then
                DIR=$HOME;
    fi;
    builtin cd "${DIR}" && \
    # use your preferred ls command
        ls
}

export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
export TZ='Europe/Paris'
export PATH="$HOME/.poetry/bin:$HOME/.local/bin/:$HOME/.dotfiles/bin:$HOME/.cargo/bin/:$PATH"
export PROMPT_COMMAND='history -a'

source $HOME/.dotfiles/bash/bash_completion

Backup

  • conf i3 (~/.config/i3)
  • conf tmux (~/.tmux.conf)
  • conf inputrc (~/.inputrc)
  • conf aliases
  • conf bashrc
  • conf i3blocks (~/.config/i3blocks/config)
  • conf alacritty (~/.config/alacritty)
sudo ln -sn $HOME/.dotfiles/i3 .config/i3
sudo ln -sn $HOME/.dotfiles/i3blocks/ .config/i3blocks
sudo ln -sfn $HOME/.dotfiles/alacritty/ .config/alacritty
sudo ln -sfn $HOME/.dotfiles/bash/inputrc .inputrc
sudo ln -sfn $HOME/.dotfiles/tmux/tmux.conf .tmux.conf
sudo ln -sfn $HOME/.dotfiles/bash/bash_aliases .bash_aliases

Todo

Un tool d'import/export de dotfiles, vis a vis d'un fichier yaml -> Import : si les fichiers ne sont pas présent sur le disque, les deposes, sinon, verification de checksum/edit date, et on avise -> Export : exporte la liste des fichiers dans le fichier de conf. Si y'a des conflits, on fait par rapport aux derniers edit date, avec une optiond de confirmation

dotfiles's People

Contributors

zblurx avatar

Stargazers

AVA avatar Wissam Serhan 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.