Skip to content

Instantly share code, notes, and snippets.

@zeddee
Forked from zed-eiq/bootstrap_node.sh
Created October 16, 2025 11:24
Show Gist options
  • Save zeddee/6447ba88662c64dd738d04da28026c7c to your computer and use it in GitHub Desktop.
Save zeddee/6447ba88662c64dd738d04da28026c7c to your computer and use it in GitHub Desktop.
dnf install -y epel-release
dnf install -y zsh git unzip tcpdump neovim tmux jq fzf ripgrep
lchsh root <<<echo "/bin/zsh"
mkdir -p "${HOME}/.config/nvim/"
## https://builtin.com/software-engineering-perspectives/neovim-configuration
cat<<"EOF">"${HOME}/.config/nvim/init.vim"
set nocompatible " disable compatibility to old-time vi
set showmatch " show matching
set ignorecase " case insensitive
set mouse=v " middle-click paste with
set hlsearch " highlight search
set incsearch " incremental search
set tabstop=4 " number of columns occupied by a tab
set softtabstop=4 " see multiple spaces as tabstops so <BS> does the right thing
set expandtab " converts tabs to white space
set shiftwidth=4 " width for autoindents
set autoindent " indent a new line the same amount as the line just typed
set number " add line numbers
set wildmode=longest,list " get bash-like tab completions
set cc=80 " set an 80 column border for good coding style
filetype plugin indent on "allow auto-indenting depending on file type
syntax on " syntax highlighting
set mouse=a " enable mouse click
set clipboard=unnamedplus " using system clipboard
filetype plugin on
set cursorline " highlight current cursorline
set ttyfast " Speed up scrolling in Vim
" set spell " enable spell check (may need to download language package)
" set noswapfile " disable creating swap file
" set backupdir=~/.cache/vim " Directory to store backup files.
EOF
cat<<"EOF">"${HOME}/.zshrc"
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="tjkirch"
plugins=(git)
source $ZSH/oh-my-zsh.sh
alias vim=nvim
EOF
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment