git config, difftastic
This commit is contained in:
parent
107478513e
commit
6df6c249c6
5 changed files with 60 additions and 7 deletions
35
.gitconfig
Normal file
35
.gitconfig
Normal 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
6
.zshrc
|
@ -305,7 +305,7 @@ ENABLE_CORRECTION="true"
|
||||||
# Add wisely, as too many plugins slow down shell startup.
|
# Add wisely, as too many plugins slow down shell startup.
|
||||||
MAGIC_ENTER_GIT_COMMAND='git status -u . | bat --style=plain -l=sh'
|
MAGIC_ENTER_GIT_COMMAND='git status -u . | bat --style=plain -l=sh'
|
||||||
MAGIC_ENTER_OTHER_COMMAND='ls -lh . | bat --paging=never -l=ls'
|
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
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
|
@ -337,3 +337,7 @@ export EDITOR='nvim'
|
||||||
# Example aliases
|
# Example aliases
|
||||||
# alias zshconfig="mate ~/.zshrc"
|
# alias zshconfig="mate ~/.zshrc"
|
||||||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
||||||
|
|
||||||
|
. "$HOME/.atuin/bin/env"
|
||||||
|
|
||||||
|
eval "$(atuin init zsh)"
|
||||||
|
|
17
Taskfile.yml
17
Taskfile.yml
|
@ -23,15 +23,10 @@ tasks:
|
||||||
|
|
||||||
|
|
||||||
tools:
|
tools:
|
||||||
deps: [zsh, kitty, ripgrep, neovim, bat, zoxide]
|
deps: [git, zsh, kitty, ripgrep, neovim, bat, zoxide]
|
||||||
cmds:
|
cmds:
|
||||||
- echo "tools installed"
|
- echo "tools installed"
|
||||||
|
|
||||||
kitty:
|
|
||||||
cmds: # installed via ./setup.sh
|
|
||||||
- cmd: ln -s "$(pwd)/kitty" ~/.config/kitty
|
|
||||||
ignore_error: true
|
|
||||||
|
|
||||||
zsh:
|
zsh:
|
||||||
cmds: # installed via ./setup.sh
|
cmds: # installed via ./setup.sh
|
||||||
- cmd: sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.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
|
- cmd: ln -s "$(pwd)/.zshrc" ~/.zshrc
|
||||||
ignore_error: true
|
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:
|
ripgrep:
|
||||||
cmds:
|
cmds:
|
||||||
- mise use --global ripgrep@latest
|
- mise use --global ripgrep@latest
|
||||||
|
|
BIN
difft.tar.gz
Normal file
BIN
difft.tar.gz
Normal file
Binary file not shown.
9
setup.sh
9
setup.sh
|
@ -3,6 +3,7 @@
|
||||||
echo Installing ZSH
|
echo Installing ZSH
|
||||||
sudo apt install zsh
|
sudo apt install zsh
|
||||||
chsh -s $(which 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 ZSH installed, log out then back in to have it be your default shell
|
||||||
echo then run this script again
|
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
|
sudo apt install mosh
|
||||||
echo mosh installed
|
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
|
echo Finally, run 'task' whenever you are ready for the remaining setup
|
||||||
|
|
Loading…
Add table
Reference in a new issue