Giter Site home page Giter Site logo

dotfiles's Introduction

dotfiles

Introduction

This repository serves as my way to help me set up and maintain my Linux. It takes the effort out of installing everything manually. Everything needed to install my preferred setup of Xubuntu is detailed in this readme. Feel free to explore, learn and copy parts for your own dotfiles. Enjoy!

Installation

Clone the repository to your computer. My path recommendation is ~/.dotfiles.

git clone https://github.com/MichaelZaslavsky/dotfiles.git ~/.dotfiles

Add symbolic links to the .bashrc, .vimrc, .tmux.conf files and its related files.

ln -s ~/.dotfiles/bashrc/.bashrc ~/.bashrc
ln -s ~/.dotfiles/bashrc/.bash_aliases ~/.bash_aliases
ln -s ~/.dotfiles/.profile ~/.profile
ln -s ~/.dotfiles/.tmux.conf ~/.tmux.conf
ln -s ~/.dotfiles/vimrc/.vimrc ~/.vimrc
ln -s ~/.dotfiles/vimrc/*.vim ~/.vim/plugin
ln -s ~/.dotfiles/vimrc/UltiSnips/* ~/.vim/UltiSnips/
ln -s ~/.dotfiles/pythonx/snippet_helpers.py ~/.vim/pythonx/snippet_helpers.py
ln -s ~/.dotfiles/pythonx/global_extra_conf.py ~/global_extra_conf.py

Tools and dependencies

bash

bash-it

bash-it is a collection of community Bash commands and scripts. Includes autocompletion, themes, aliases, custom function, and more.

git clone --depth=1 https://github.com/Bash-it/bash-it.git ~/.bash_it
Run `~/.bash_it/install.sh`
Reload bashrc by `source ~/.bashrc`

thefuck

thefuck is a manificent app, that corrects errors in previous console commands.

pip install --user thefuck

Global search

A great code-searching tool is the silver searcher (ag "{text to search}").

sudo apt install silversearcher-ag

tmux

tpm

Tmux Plugin Manager.

sudo apt install tmux
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
  • Start tmux
  • Launch tmux and hit C-a :source-file ~/.tmux.conf or C-a + r to reload tmux (Note C-a is my configured tmux prefix).
  • Hit C-a I to fetch any plugins.

powerline

Powerline is a statusline plugin for vim, and provides statuslines and prompts

Make sure python is installed and follow those steps:

sudo add-apt-repository universe
pip install powerline
pip install --user powerline-status
wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
mkdir ~/.fonts
mv PowerlineSymbols.otf ~/.fonts/
fc-cache -vf ~/.fonts/
mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/

After the installations, a restart to the terminal emulator will probably be required. Starting tmux should then display a pretty and helpful powerline.

vim

Vim is a free and open-source, screen-based text editor program.

vim-plug is my Vim Plugin Manager.

curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

Open the .vimrc file and install its plugins:

vim ~/.vimrc
:PlugInstall

Complete the YouCompleteMe plugin installations:

sudo apt install cmake
cd ~/.vim/plugged/YouCompleteMe
python3 install.py

Complete the fzf plugin installations:

sudo apt install fzf && fzf

fonts

  • Download a Nerd Font
  • Unzip and copy to ~/.fonts
  • Run fc-cache -fv to manually rebuild the font cache

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.