Last active
February 8, 2024 00:25
-
-
Save TheBunnyMan123/75836ec00a99834184db2dc383da58a7 to your computer and use it in GitHub Desktop.
Single file configs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If it's an interactive shell, run bashrc | |
if [ -f $HOME/.bashrc ] | |
then | |
if [[ $- == *i* ]] | |
then | |
source $HOME/.bashrc | |
fi | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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