Skip to content

Commit

Permalink
fix discord update, reduce git autocorrect time
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxWolf-01 committed Aug 24, 2024
1 parent ab501bd commit 019d1bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion git/gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
binary = true

[help]
autocorrect = 5
autocorrect = 2

[branch]
sort = -committerdate
Expand Down
4 changes: 2 additions & 2 deletions setup
Original file line number Diff line number Diff line change
Expand Up @@ -288,12 +288,12 @@ obsidian() {
echo "Obsidian app set up."
}

discord() { # will setup discord and betterdiscord on first run, update both on subsequent runs
discord() { # will setup discord and betterdiscord on first run, update both on subsequent runs; after discord update run this second time to apply betterdiscord changes
if [ "$EUID" -eq 0 ]; then echo "Don't run as root!"; return; fi
if ! command -v npm &> /dev/null || ! command -v pnpm &> /dev/null; then echo "npm or pnpm not found. Run './setup install_nodejs'"; return; fi
cd ~/repos/tools || echo "Error: $HOME/repos/tools does not exist" || exit 1
if [ -d ~/repos/tools/BetterDiscord ]; then cd BetterDiscord && git pull; else git clone --depth 1 https://github.com/BetterDiscord/BetterDiscord.git && cd BetterDiscord; fi; # get latest betterdiscord
wget -O discord.deb "https://discord.com/api/download?platform=linux&format=deb" && sudo dpkg -i discord.deb && rm discord.deb || exit # get latest discord
if [ ! -f discord.old.deb ]; then wget -O discord.deb "https://discord.com/api/download?platform=linux&format=deb" && sudo dpkg -i discord.deb && mv discord.deb discord.old.deb; else sudo dpkg -i discord.old.deb && rm discord.old.deb; fi;
pnpm install && pnpm build && pnpm inject
find ~/.dotfiles/desktop/discord/themes -type f -exec ln -sf {} ~/.config/BetterDiscord/themes/ \;
wget https://discordstyles.github.io/DarkMatter/DarkMatter.theme.css -O ~/.config/BetterDiscord/themes/DarkMatter.theme.css
Expand Down

0 comments on commit 019d1bc

Please sign in to comment.