Skip to content

nhymxu/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

If there is a shell, there is a way



How to use

zsh plugin

[[ -r ~/.config/zsh-snap/znap.zsh ]] ||
    git clone --depth 1 -- https://github.com/marlonrichert/zsh-snap.git ~/.config/zsh-snap

source ~/.config/zsh-snap/znap.zsh

znap source Aloxaf/fzf-tab

znap source marlonrichert/zsh-autocomplete
znap source marlonrichert/zsh-edit

znap source marlonrichert/zsh-hist
bindkey '^[q' push-line-or-edit

export ZSH_HIGHLIGHT_HIGHLIGHTERS=( main brackets )
znap source zsh-users/zsh-syntax-highlighting

znap source wfxr/forgit

Load starship prompt for zsh

export STARSHIP_CONFIG=~/dotfiles/shell/framework/starship.toml
eval "$(starship init zsh)"

Load zsh custom config

[ -f ~/dotfiles/shell/zsh.sh ] && source ~/dotfiles/shell/zsh.sh

Install vim

echo '
set runtimepath=~/dotfiles/editor/vim,\$VIMRUNTIME
source ~/dotfiles/editor/vim/init.vim
helptags ~/dotfiles/editor/vim/docs' > ~/.vimrc

Install neovim

mkdir -p ~/.config/nvim
echo '
set runtimepath=~/dotfiles/editor/vim,\$VIMRUNTIME
source ~/dotfiles/editor/vim/init.vim
helptags ~/dotfiles/editor/vim/docs' > ~/.config/nvim/init.vim

Install nano

cp ~/dotfiles/editor/nano/nanorc.sample ~/.nanorc

Install micro

mkdir -p ~/.config/micro
rm -rf ~/.config/micro/settings.json
ln -s ~/dotfiles/editor/micro/settings.json ~/.config/micro/settings.json

Install git

# Install diff-so-fancy
curl https://raw.githubusercontent.com/so-fancy/diff-so-fancy/master/third_party/build_fatpack/diff-so-fancy -o ~/bin/diff-so-fancy
chmod +x ~/bin/diff-so-fancy

# Copy example content for local config and edit this
cp ~/dotfiles/git/local.example ~/.gitconfig_local

# Install git config
rm -rf ~/.gitconfig && rm -rf ~/.gitignore_global
ln -s ~/dotfiles/git/gitconfig ~/.gitconfig
ln -s ~/dotfiles/git/gitignore ~/.gitignore_global

Homebrew

Dump to Brewfile

brew bundle dump --force --all

Curl

# Remove current config file
rm -rf ~/.curlrc && rm -rf ~/.curl-format

# Symlink config
ln -s ~/dotfiles/curl/curlrc ~/.curlrc
ln -s ~/dotfiles/curl/curl-format ~/.curl-format

wget

# Remove current config file
rm -rf ~/.wgetrc

# Symlink config
ln -s ~/dotfiles/wgetrc ~/.wgetrc

Aria2

# Remove current config folder
rm -rf ~/.aria2

# Symlink config
ln -s ~/dotfiles/aria2 ~/.aria2

Stuff you might wanna use

  • fzf Fuzzy finder
  • ripgrep Much faster ack
  • z Quickly jump around folders
  • bat Cat with syntax highlight
  • lf Ranger but faster
  • diff-so-fancy Better git diff
  • icdiff Quick replacement for diff
  • delta syntax-highlighting pager for git, diff, and grep output
  • up Every piper's dream
  • tig ncurses interface for git
  • tmuxp tmux session manager
  • duf duf is like htop for disk usage
  • lfs Filesystems listing like df -h
  • starship-rs The minimal, blazing-fast, and infinitely customizable prompt for any shell
  • zsh-snap zsh light-weight plugin manager
  • bandwhich CLI utility for displaying current network utilization
  • sd - Quick replacement for sed. Find & replace CLI
  • fd - Quick replacement for find. Find entries in your filesytem
  • eza - modern replacement for ls