Add lazygit config files
This commit is contained in:
parent
f2d03da284
commit
1707767e1f
12
lazygit.yaml
Normal file
12
lazygit.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
gui:
|
||||||
|
showRootItemInFileTree: false
|
||||||
|
showPanelJumps: false
|
||||||
|
nerdFontsVersion: '3'
|
||||||
|
git:
|
||||||
|
merging:
|
||||||
|
args: --no-ff
|
||||||
|
mainBranches: [master, main, develop]
|
||||||
|
autoStageResolvedConflicts: false
|
||||||
|
overrideGpg: true
|
||||||
|
parseEmoji: true
|
||||||
61
setup.sh
61
setup.sh
@ -1,38 +1,43 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Make sure $HOME/.config exists. It should, if we've been cloned there!
|
|
||||||
if [[ ! -d "$HOME/.config" ]]; then
|
|
||||||
mkdir -p $HOME/.config
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Clone ZSH configs.
|
|
||||||
if [[ ! -d "$HOME/.config/zsh" ]]; then
|
|
||||||
git clone --recurse-submodules https://git.kree.gr/kreeger/zshrc.git $HOME/.config/zsh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ! -a "$HOME/.zshrc" ]]; then
|
|
||||||
ln -sfv $HOME/.config/zsh/zshrc $HOME/.zshrc
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Clone nvim configs.
|
|
||||||
if [[ ! -d "$HOME/.config/nvim" ]]; then
|
|
||||||
git clone --recurse-submodules https://git.kree.gr/kreeger/nvimrc.git $HOME/.config/nvim
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Clone tmux configs.
|
|
||||||
if [[ ! -d "$HOME/.config/tmux" ]]; then
|
|
||||||
git clone --recurse-submodules https://git.kree.gr/kreeger/tmuxrc.git $HOME/.config/tmux
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Link dotfiles.
|
|
||||||
declare -a dotfiles=("gemrc" "gitconfig" "gitignore.global")
|
|
||||||
|
|
||||||
SCRIPT=$(readlink -f "$0")
|
SCRIPT=$(readlink -f "$0")
|
||||||
SCRIPTPATH=$(dirname "$SCRIPT")
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
||||||
|
|
||||||
|
# Make sure $HOME/.config exists. It should, if we've been cloned there!
|
||||||
|
if [[ ! -d "$HOME/.config" ]]; then
|
||||||
|
mkdir -p "$HOME"/.config
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Clone ZSH configs.
|
||||||
|
if [[ ! -d "$HOME/.config/zsh" ]]; then
|
||||||
|
git clone --recurse-submodules https://git.kree.gr/kreeger/zshrc.git "$HOME"/.config/zsh
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -a "$HOME/.zshrc" ]]; then
|
||||||
|
ln -sfv "$HOME"/.config/zsh/zshrc "$HOME"/.zshrc
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Clone nvim configs.
|
||||||
|
if [[ ! -d "$HOME/.config/nvim" ]]; then
|
||||||
|
git clone --recurse-submodules https://git.kree.gr/kreeger/nvimrc.git "$HOME"/.config/nvim
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Clone tmux configs.
|
||||||
|
if [[ ! -d "$HOME/.config/tmux" ]]; then
|
||||||
|
git clone --recurse-submodules https://git.kree.gr/kreeger/tmuxrc.git "$HOME"/.config/tmux
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Clone lazygit config.
|
||||||
|
if [[ ! -a "$HOME/.config/lazygit/config.yml" ]]; then
|
||||||
|
mkdir -p "$HOME/.config/lazygit"
|
||||||
|
ln -sfv "$SCRIPTPATH/lazygit.yaml" "$HOME/.config/lazygit/config.yml"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Link dotfiles.
|
||||||
|
declare -a dotfiles=("gemrc" "gitconfig" "gitignore.global")
|
||||||
for file in "${dotfiles[@]}"
|
for file in "${dotfiles[@]}"
|
||||||
do
|
do
|
||||||
if [[ ! -a "$HOME/.$file" ]]; then
|
if [[ ! -a "$HOME/.$file" ]]; then
|
||||||
ln -sfv $SCRIPTPATH/$file $HOME/.$file
|
ln -sfv "$SCRIPTPATH/$file" "$HOME/.$file"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user