Skip to content

Instantly share code, notes, and snippets.

@shrpnsld
Last active February 21, 2024 14:22
Show Gist options
  • Save shrpnsld/933a367bcba6a3b42b82fd901b7736eb to your computer and use it in GitHub Desktop.
Save shrpnsld/933a367bcba6a3b42b82fd901b7736eb to your computer and use it in GitHub Desktop.
twigs file for nest-in
tmux / pkgmgr dotfiles hack-nerd-font
$INSTALL tmux
cd "$DOTFILES_DIR"
stow --target="$HOME" tmux
ranger / pkgmgr dotfiles git highlight hack-nerd-font
$INSTALL ranger
cd "$DOTFILES_DIR"
stow --target="$HOME" ranger
mkdir -p ~/.config/ranger/plugins/
# icons
cd "$DOTFILES_DIR"/stuff/ranger-devicons
git submodule update --init
ln -sf "$DOTFILES_DIR"/stuff/ranger-devicons ~/.config/ranger/plugins/ranger-devicons
nvim / pkgmgr downloader dotfiles hack-nerd-font ripgrep
$INSTALL nvim
cd "$DOTFILES_DIR"
stow --target="$HOME" nvim
dotfiles / git '~/Projects/dotfiles/'
$INSTALL stow
git clone https://github.com/shrpnsld/dotfiles "$DOTFILES_DIR"
cd "$DOTFILES_DIR"
stow --target="$HOME" --dotfiles git
ripgrep / pkgmgr
$INSTALL ripgrep
git / pkgmgr 'git'
$INSTALL git
highlight / pkgmgr 'highlight'
$INSTALL highlight
dev / pkgmgr
$INSTALL cmake ccache lazygit
hack-nerd-font / downloader '~/.local/share/fonts/HackNerdFont-Regular.ttf'
mkdir -p ~/.local/share/fonts
cd ~/.local/share/fonts
$DOWNLOAD https://github.com/ryanoasis/nerd-fonts/releases/download/v3.1.1/Hack.zip
unzip Hack.zip HackNerdFont*.ttf
fc-cache -f -v
rm Hack.zip
terminal / [macos]
cd "$DOTFILES_DIR"/stuff/catppuccin-terminal-app
git submodule update --init
terminal / [ubuntu] pkgmgr ubuntu-stuff
cd "$DOTFILES_DIR"/stuff/catppuccin-gnome-terminal
git submodule update --init
./install.py
terminal / [elementary] hack-nerd-font
gsettings set io.elementary.terminal.settings font 'Hack Nerd Font'
ubuntu-stuff / [ubuntu] 'python3' 'dconf'
$INSTALL dconf-cli python3
pkgmgr / [macos] brew
INSTALL='brew install'
REMOVE='brew uninstall'
AUTOREMOVE='brew autoremove'
pkgmgr / [ubuntu] [avail:snap]
snap_or_apt()
{
snap "$@" || apt "$@"
}
INSTALL='sudo snap_or_apt install'
REMOVE='sudo snap_or_apt remove'
AUTOREMOVE='echo "no autoremove command for snap was defined" ; :'
pkgmgr / [elementary] [avail:snap]
INSTALL='sudo snap install'
REMOVE='sudo snap remove'
AUTOREMOVE='echo "no autoremove command for snap was defined" ; :'
pkgmgr / [avail:dnf]
INSTALL='sudo dnf -y install'
REMOVE='sudo dnf -y remove'
AUTOREMOVE='sudo dnf -y autoremove'
pkgmgr / [avail:pacman]
INSTALL='sudo pacman --noconfirm -Sy'
REMOVE='sudo pacman --noconfirm -Rs'
AUTOREMOVE='sudo pacman --noconfirm -Sc && pacman --noconfirm -Rns $(pacman -Qtdq)'
brew / [macos] 'brew'
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
downloader / [avail:curl]
DOWNLOAD='curl -fLO'
DOWNLOAD_TO='curl -fLo'
downloader / [avail:wget]
DOWNLOAD='wget -q'
DOWNLOAD_TO='wget -qO'
cleanup! / pkgmgr
if [ -d "$DOTFILES_DIR" ]
then
cd "$DOTFILES_DIR"
stow --target="$HOME" --delete tmux ranger nvim git
rm -rf "$DOTFILES_DIR"
fi
$REMOVE tmux ranger neovim git stow cmake highlight
$AUTOREMOVE
if command -v brew
then
yes | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
fi
.first
PROJECTS_DIR="$HOME/Projects"
DOTFILES_DIR="$PROJECTS_DIR/dotfiles"
mkdir -p "$PROJECTS_DIR"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment