Useful shell functions & IDE setup.
Install the repo:
mkdir ~/opt
git clone [email protected]:QuiteClose/shelf.git ~/opt/shelf
Build the shelf.sh script from the shelf/*.sh files:
./build.sh > ./shelf.shSource the shelf.sh file in your ~/.zshrc:
echo "source ~/opt/shelf/shelf.sh" >> ~/.zshrc
On MacOS it is useful to install GNU equivalents of e.g. sed:
brew install coreutils findutils gawk gnu-sed grepThen add the following to your ~/.zshrc:
# MacOS:
export PATH="/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH"
export PATH="/opt/homebrew/opt/findutils/libexec/gnubin:$PATH"
export PATH="/opt/homebrew/opt/grep/libexec/gnubin:$PATH"
export PATH="/opt/homebrew/opt/gawk/libexec/gnubin:$PATH"
export PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"
# Intel MacOS:
# export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
# export PATH="/usr/local/opt/findutils/libexec/gnubin:$PATH"
# ...etc.
# Optional:
export PATH=$HOME/bin:$PATH
# Source your shelf.sh script if needed
source ~/opt/shelf/shelf.shConfig files etc. for Ghostty terminal emulator.
- Install on Linux:
ln -s ~/opt/shelf/ghostty/config ~/.config/ghostty/config - Install on MacOS:
ln -s ~/opt/shelf/ghostty/config ~/Library/Application\ Support/com.mitchellh.ghostty/config
mkdir -p ~/.nvimundo ~/.config/nvim/lua
ln -sf ~/opt/shelf/nvim/basic.lua ~/.config/nvim/init.lua
ln -sf ~/opt/shelf/nvim/lua/quiteclose ~/.config/nvim/lua/quiteclose- Install
MesloLGSNerdFontMono-Regular.ttf(Or some other Nerd Font) - Setup basic config:
mkdir -p ~/.nvimundo ~/.config/nvim/lua ln -sf ~/opt/shelf/nvim/basic.lua ~/.config/nvim/init.lua ln -sf ~/opt/shelf/nvim/lua/quiteclose ~/.config/nvim/lua/quiteclose
- Install required packages:
- On Linux:
pacman -S cargo composer curl fd go jdk-openjdk julia lua lua-jsregexp lua51 lua51-jsregexp luarocks neovim perl php ruby tree-sitter tree-sitter-cli wget
- On MacOS:
- Install available packages:
brew install composer curl fd go julia lua luajit luarocks openjdk neovim perl php python3 rip-grep ruby rust tree-sitter wget
- Build
lua5.1from source:pushd $(mktemp -d) curl -O https://www.lua.org/ftp/lua-5.1.5.tar.gz tar xzf lua-5.1.5.tar.gz cd lua-5.1.5 make macosx mkdir ~/opt make INSTALL_TOP=$HOME/opt/[email protected] install ln -s ~/opt/[email protected]/bin/lua ~/bin/lua5.1 popd
- Install available packages:
- On Linux:
- Get
:checkhealthpassing insidenvim - Link plugin config:
ln -sf ~/opt/shelf/nvim/init.lua ~/.config/nvim/init.lua ln -sf ~/opt/shelf/nvim/lua/plugins ~/.config/nvim/lua/plugins
- Run
:Lazyand Sync plugins. - Run
:checkhealthand resolve any issues. - Run
:TSInstall allto update tree-sitter parsers. - Run
:checkhealthand resolve any issues.