Add .gitconfig

This commit is contained in:
2021-10-04 20:36:46 +03:00
parent 487282cb96
commit 4382327eb0
2 changed files with 4 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
email = daniil@tsivinsky.com email = daniil@tsivinsky.com
name = Daniil Tsivinsky name = Daniil Tsivinsky
[core] [core]
editor = vim editor = nvim
[init] [init]
defaultBranch = master defaultBranch = master
[push] [push]

View File

@@ -18,6 +18,7 @@ i3Dir="$HOME/.config/i3"
polybarDir="$HOME/.config/polybar" polybarDir="$HOME/.config/polybar"
rofiDir="$HOME/.config/rofi" rofiDir="$HOME/.config/rofi"
picomFile="$HOME/.config/picom.conf" picomFile="$HOME/.config/picom.conf"
gitconfigFile="$HOME/.gitconfig"
# Install all configs # Install all configs
if [ "$1" = "-S" ] ; then if [ "$1" = "-S" ] ; then
@@ -31,6 +32,7 @@ ln -s $PWD/alacritty $alacrittyDir
ln -s $PWD/polybar $polybarDir ln -s $PWD/polybar $polybarDir
ln -s $PWD/rofi $rofiDir ln -s $PWD/rofi $rofiDir
ln -s $PWD/picom.conf $picomFile ln -s $PWD/picom.conf $picomFile
ln -s $PWD/.gitconfig $gitconfigFile
# Install vim-plug # Install vim-plug
curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
@@ -42,7 +44,7 @@ fi
# Remove all configs # Remove all configs
if [ "$1" = "-R" ] ; then if [ "$1" = "-R" ] ; then
cd && rm -rf .bashrc $nvimDir $alacrittyDir $i3Dir $polybarDir $rofiDir $picomFile && cd - cd && rm -rf .bashrc $nvimDir $alacrittyDir $i3Dir $polybarDir $rofiDir $picomFile $gitconfigFile && cd -
fi fi