GithubHelp home page GithubHelp logo

dotfiles's Introduction

⚡ DEPRECIATION WARNING ⚡

This repo is not maintained anymore as I am moving to setup my dotfiles via ansible.

dotfiles

This repo contains useful snippets/templates for various dotfiles:

Zsh

Install Zsh on Ubuntu

sudo apt install zsh

Change to zsh as default shell

chsh -s $(which zsh)

Oh my Zsh

Install Oh my Zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Powerlevel 10k configuration

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
source ~/.oh-my-zsh/custom/themes/powerlevel10k/powerlevel10k.zsh-theme

Use

p10k configure

or try to copy .p10k.zsh (not tested)

ZSH_THEME="powerlevel10k/powerlevel10k"

Config is defined in .zshrc

Each plugin must be install, e.g. such as

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/jeffreytse/zsh-vi-mode \
  $ZSH/custom/plugins/zsh-vi-mode

Bashrc

Use zshell instead (or try fish shell), but if you really have to use the bashrc, you can find the .bashrc here

Neovim

sudo apt-get install neovim

Create folder for vim init config (vimrc is init.vim in neovim)

mkdir ~/.config/nvim
nvim ~/.config/nvim/init.vim

Vim

Vim with vundle plugins, need to install vundle via

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

Plugins are defined in the vimrc and installed via :PluginInstall

My plugins:

  • Vim-code-dark: Dark theme
  • Airline: Nice status bar
  • FZF: Fuzzy file search
  • Ripgrep: Grep for vim
  • Fugitive: Popular git plugin
  • Nerdtree: File tree explorer
  • Rainbow_Parentheses: Colorful parentheses

Vim Config Generator

Vim Bootstrap is a tool similar to gitignore.io that generates a vimrc / init.vim based on your tool preferences

Git

Git config provides various helper:

  • Mergetool config (not tested/used right now)
  • Aliases, git graph via CLI

Tmux

Install tmux

sudo apt-get install tmux

In the future:

Install plugin manager tpm

tmux source .tmux.conf

Replacing legacy CLI tools

  • exa/lsd replacing ls

  • z replacing cd (zoxide)

  • bat replacing cat

  • fd replacing find

  • diff-so-fancy/ delta replacing git diff

  • tldr replacing man

  • htop replacing top

More handy cli tools

  • ranger - file navigation

  • fzf

    git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
    ~/.fzf/install
  • fuck - thefuck

  • ctop -> Docker container top (not working yet)

dotfiles's People

Contributors

cschindlbeck avatar

Watchers

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