1
1
Fork 0

git config, difftastic

This commit is contained in:
gaiety 2025-10-07 19:34:59 -06:00
parent 107478513e
commit 6df6c249c6
5 changed files with 60 additions and 7 deletions

35
.gitconfig Normal file
View file

@ -0,0 +1,35 @@
[user]
email = ava+git@basking.monster
name = gaiety
[apply]
# Detect whitespace errors when applying a patch
whitespace = fix
[color]
ui = auto
[color "diff"]
meta = yellow bold
frag = magenta bold # line info
old = red # deletions
new = green # additions
[color "status"]
added = yellow
changed = green
untracked = cyan
[diff]
# Detect copies as well as renames
renames = copies
tool = difft
[help]
# Automatically correct and execute mistyped commands
autocorrect = 1
[push]
# change to maching for machines with older versions of git 1.x.x
default = simple
autoSetupRemote = true

6
.zshrc
View file

@ -305,7 +305,7 @@ ENABLE_CORRECTION="true"
# Add wisely, as too many plugins slow down shell startup.
MAGIC_ENTER_GIT_COMMAND='git status -u . | bat --style=plain -l=sh'
MAGIC_ENTER_OTHER_COMMAND='ls -lh . | bat --paging=never -l=ls'
plugins=(git gh rake rails ssh mise mix bun docker docker-compose magic-enter sudo)
plugins=(git gh rake zsh-autosuggestions rails ssh mise mix bun docker docker-compose magic-enter sudo)
source $ZSH/oh-my-zsh.sh
@ -337,3 +337,7 @@ export EDITOR='nvim'
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
. "$HOME/.atuin/bin/env"
eval "$(atuin init zsh)"

View file

@ -23,15 +23,10 @@ tasks:
tools:
deps: [zsh, kitty, ripgrep, neovim, bat, zoxide]
deps: [git, zsh, kitty, ripgrep, neovim, bat, zoxide]
cmds:
- echo "tools installed"
kitty:
cmds: # installed via ./setup.sh
- cmd: ln -s "$(pwd)/kitty" ~/.config/kitty
ignore_error: true
zsh:
cmds: # installed via ./setup.sh
- cmd: sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
@ -41,6 +36,16 @@ tasks:
- cmd: ln -s "$(pwd)/.zshrc" ~/.zshrc
ignore_error: true
kitty:
cmds: # installed via ./setup.sh
- cmd: ln -s "$(pwd)/kitty" ~/.config/kitty
ignore_error: true
git:
cmds:
- cmd: ln -s "$(pwd)/.gitconfig" ~/.gitconfig
ignore_error: true
ripgrep:
cmds:
- mise use --global ripgrep@latest

BIN
difft.tar.gz Normal file

Binary file not shown.

View file

@ -3,6 +3,7 @@
echo Installing ZSH
sudo apt install zsh
chsh -s $(which zsh)
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
echo ZSH installed, log out then back in to have it be your default shell
echo then run this script again
@ -26,4 +27,12 @@ echo ranger installed, set it as your default file manager if you wish
sudo apt install mosh
echo mosh installed
curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | sh
atuin import auto
echo Atuin installed
wget -qO difft.tar.gz https://github.com/Wilfred/difftastic/releases/latest/download/difft-x86_64-unknown-linux-gnu.tar.gz
sudo tar xf difft.tar.gz -C /usr/local/bin
echo difftastic installed
echo Finally, run 'task' whenever you are ready for the remaining setup