cgjosephlee / dotfiles

My config files (vim, tmux, etc.)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dotfiles

yadm

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

Package control

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

Bash-it

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

Oh my bash

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

zinit

First install

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

Plugins

powerlevel10k

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";
}'

Fast-syntax-highlighting

An alternative of zsh-syntax-highlighting.

fast-theme safari

biozsh

Zsh autocompletes for plenty bioinfomatic tools.

Neovim

Installation

Just download and enjoy!

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

LazyVim

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.

vim-plug

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

Tmux Plugin Manager (tpm)

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

About

My config files (vim, tmux, etc.)


Languages

Language:Lua 51.3%Language:Shell 43.1%Language:Vim Script 5.6%