Giter Site home page Giter Site logo

dotfiles's Introduction

dotfiles

Installation

Linux

curl -fLo yadm https://github.com/TheLocehiliosan/yadm/raw/master/yadm && chmod a+x yadm

MacOS

brew install yadm

Usage

yadm inherits all of Git’s features.

yadm clone https://github.com/cgjosephlee/dotfiles

iTerm2

Color preset

Nord, background = '#212327'.

Font

13pt MesloLGS Nerd Font (patched Menlo, LGS: line gap small)

brew tap homebrew/cask-fonts
brew install font-meslo-lg-nerd-font

Other emulators

Sublime Text 3

Installation guide

Theme

Boxy: Monokai

{
    "theme": "Boxy Monokai.sublime-theme",
    "theme_button_rounded": true,
    "theme_find_panel_size_xxs": true,
    "theme_sidebar_size_xs": true,
}

Color scheme

Default Monokai

Other plugins

  • AlignTab
  • Markdown Preview
  • MarkdownTOC (usage)
  • SideBarEnhancements

Bash

Installation

git clone --depth=1 https://github.com/Bash-it/bash-it.git ~/.bash_it
~/.bash_it/install.sh

Uninstallation

cd $BASH_IT && ./uninstall.sh
cd $HOME && rm -rf $BASH_IT

A delightful community-driven framework.

Theme

PS1 config

export PS1='\[\e[1;33m\]$PWD/ \[\e[0m\]\n\u@\h@\t $ '

behaves like

/to/your/path
User@Host@Time $

Zsh

Setup zsh

chsh -s /bin/zsh

Without root

# install from source
wget -O zsh.tar.xz https://sourceforge.net/projects/zsh/files/latest/download
tar Jxf zsh.tar.xz
cd zsh-<version>
./configure --prefix=$HOME/.local
make && make install
# activate zsh in , e.g. .bashrc
exec zsh

First install

sh -c "$(curl --fail --show-error --silent --location https://raw.githubusercontent.com/zdharma-continuum/zinit/HEAD/scripts/install.sh)"

Plugins

A fast drop-in replacement for Powerlevel9k. For color customization, all supported colors are (ref):

# 256 colors
for code ({000..255}) print -P -- "$code: %F{$code}This is how your text would look like%f"

# true color
awk 'BEGIN{
  s="/\\/\\/\\/\\/\\"; s=s s s s s s s s;
  for (colnum = 0; colnum<77; colnum++) {
    r = 255-(colnum*255/76);
    g = (colnum*510/76);
    b = (colnum*255/76);
    if (g>255) g = 510-g;
    printf "\033[48;2;%d;%d;%dm", r,g,b;
    printf "\033[38;2;%d;%d;%dm", 255-r,255-g,255-b;
    printf "%s\033[0m", substr(s,colnum+1,1);
  }
  printf "\n";
}'

An alternative of zsh-syntax-highlighting.

fast-theme safari

Zsh autocompletes for plenty bioinfomatic tools.

Installation

Just download and enjoy!

# for linux
curl -fLo nvim https://github.com/neovim/neovim/releases/download/stable/nvim.appimage
chmod +x nvim

A Neovim setup powered by lazy.nvim. All plugins should be installed automatically on first startup.

LSP

Install nodejs

https://nodejs.org/en/download/

VERSION=v18.15.0
DISTRO=linux-x64
PREFIX=$HOME/local
wget https://nodejs.org/dist/$VERSION/node-$VERSION-$DISTRO.tar.xz
tar -xJf node-$VERSION-$DISTRO.tar.xz -C $PREFIX
ln -s $PREFIX/node-$VERSION-$DISTRO/bin/* $PREFIX/bin

Install language server

:Mason

Vscode intergration

References

Cheatsheet

Setups

Vim

Preserved in case nvim is not available.

Install

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

then

:PlugInstall

Tmux

Installation

Source

https://github.com/tmux/tmux

  1. Install libevent
  2. Install tmux
./configure CFLAGS="-I$HOME/.local/include" LDFLAGS="-L$HOME/.local/lib" --prefix=$HOME/.local
make && make install

Appimage

https://github.com/nelsonenzo/tmux-appimage/releases

curl -fLo tmux https://github.com/nelsonenzo/tmux-appimage/releases/download/tmux3.1b/tmux-3.1b-x86_64.AppImage
chmod +x tmux

Install

git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

and configure .tmux.conf (see readme of tpm).

Install plugins in tmux:

  • prefix + I : installs new plugins from GitHub or any other git repository on the plugin list
  • prefix + U : updates plugin(s)
  • prefix + alt + u : remove/uninstall plugins not on the plugin list (workaround for macOS)

or via command line (ref):

# installing
~/.tmux/plugins/tpm/bin/install_plugins
# updating
~/.tmux/plugins/tpm/bin/update_plugins all
~/.tmux/plugins/tpm/bin/update_plugins tmux-sensible
# removing
~/.tmux/plugins/tpm/bin/clean_plugins

Other plugins

Misc

dotfiles managers

dotfiles's People

Contributors

cgjosephlee avatar

Stargazers

Shaun Chen 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.