Skip to content

Instantly share code, notes, and snippets.

@TheBunnyMan123
Last active February 8, 2024 00:25
Show Gist options
  • Save TheBunnyMan123/75836ec00a99834184db2dc383da58a7 to your computer and use it in GitHub Desktop.
Save TheBunnyMan123/75836ec00a99834184db2dc383da58a7 to your computer and use it in GitHub Desktop.
Single file configs
# If it's an interactive shell, run bashrc
if [ -f $HOME/.bashrc ]
then
if [[ $- == *i* ]]
then
source $HOME/.bashrc
fi
fi
# Automatic tmux
test -z "$TMUX" && (tmux attach || tmux new-session)
# Prompt command
prompt() {
if [[ $COLORTERM =~ ^(truecolor|24bit)$ ]]
then
# True color version using catppuccino macchiato
PEACH=\\[\\033[38\;2\;245\;169\;127m\\]
TEXT=\\[\\033[38\;2\;202\;211\;245m\\]
SAPPHIRE=\\[\\033[38\;2\;125\;196\;228m\\]
RED=\\[\\033[38\;2\;237\;135\;150m\\]
BOLD=\\[\\033[1m\\]
RESETANSI=\\[\\033[0m\\]
PS1="$RESETANSI$PEACH$USER$RESETANSI$TEXT$BOLD@$RESETANSI$PEACH$HOSTNAME$TEXT$BOLD:$RESETANSI $SAPPHIRE$PWD\n$RED$BOLD> $RESETANSI"
else
# Simple custom prompt
GREEN=\\[\\033[32m\\]
WHITE=\\[\\033[37m\\]
CYAN=\\[\\033[36m\\]
MAGENTABOLD=\\[\\033[35\;1m\\]
BOLD=\\[\\033[1m\\]
RESETANSI=\\[\\033[0m\\]
PS1="$RESETANSI$GREEN$USER$RESETANSI$BOLD@$RESETANSI$GREEN$HOSTNAME$RESETANSI$BOLD:$RESETANSI $CYAN$PWD\n$MAGENTABOLD> $RESETANSI"
fi
}
# Set prompt command
PROMPT_COMMAND=prompt
# GNU Coreutil config
alias ls="ls -p -F --color\=auto"
alias grep="grep --color\=auto"
import = [
"~/.config/alacritty/catppuccin-macchiato.toml"
]
[font]
size = 12.0
[font.bold]
family = "monospace"
style = "Bold"
[font.bold_italic]
family = "monospace"
style = "Bold Italic"
[font.italic]
family = "monospace"
style = "Italic"
[font.normal]
family = "monospace"
style = "Regular"
#!/bin/bash
mkdir -p ~/.tmux/plugins/tpm
mkdir -p ~/.config/nvim
mkdir -p ~/.config/fontconfig
mkdir -p ~/.config/alacritty
yes "" | sudo pacman -Syu --needed keepassxc noto-fonts noto-fonts-cjk noto-fonts-emoji noto-fonts-extra alacritty file-roller dotnet-sdk-8.0 jdk17-openjdk git tmux neovim nerd-fonts firefox-developer-edition -y
git clone https://github.com/TheBunnyMan123/neovim-config.git ~/.config/nvim
git clone https://github.com/TheBunnyMan123/tmux-config.git ~/.config/tmux
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
curl https://gist.githubusercontent.com/TheBunnyMan123/75836ec00a99834184db2dc383da58a7/raw/.bashrc -o ~/.bashrc
curl https://gist.githubusercontent.com/TheBunnyMan123/75836ec00a99834184db2dc383da58a7/raw/.bash_profile -o ~/.bash_profile
curl https://gist.githubusercontent.com/TheBunnyMan123/75836ec00a99834184db2dc383da58a7/raw/fonts.conf -o ~/.config/fontconfig/fonts.conf
curl https://gist.githubusercontent.com/TheBunnyMan123/75836ec00a99834184db2dc383da58a7/raw/alacritty.toml -o ~/.config/alacritty/alacritty.conf
curl -LO --output-dir ~/.config/alacritty https://github.com/catppuccin/alacritty/raw/main/catppuccin-macchiato.toml
cd "$(mktemp -d /tmp/yayXXXXXX)"
sudo pacman -S --needed git base-devel -y
git clone https://aur.archlinux.org/yay-bin.git
cd yay-bin
yes | makepkg -si
yes "" | yay -Syu peazip
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<alias>
<family>serif</family>
<prefer>
<family>Noto Serif</family>
<family>Noto Color Emoji</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Noto Sans</family>
<family>Noto Color Emoji</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>JetBrainsMono Nerd Font Mono</family>
<family>Noto Color Emoji</family>
</prefer>
</alias>
</fontconfig>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment