-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add install script and lazygit config
- Loading branch information
1 parent
2c8942e
commit 747af51
Showing
17 changed files
with
39 additions
and
17 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
[user] | ||
name = Felix Schneider | ||
email = [email protected] | ||
[init] | ||
defaultBranch = main | ||
[commit] | ||
gpgsign = true | ||
[core] | ||
autocrlf = input | ||
[help] | ||
autocorrect = 15 | ||
[push] | ||
autoSetupRemote = true | ||
[user] | ||
name = Felix Schneider | ||
email = [email protected] | ||
[init] | ||
defaultBranch = main | ||
[commit] | ||
gpgsign = true | ||
[core] | ||
autocrlf = input | ||
[help] | ||
autocorrect = 15 | ||
[push] | ||
autoSetupRemote = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
promptToReturnFromSubprocess: false | ||
notARepository: skip | ||
os: | ||
edit: nano {{filename}} | ||
editAtLine: nano +{{line}} {{filename}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
|
||
if ! grep -q "source /home/${USER}/dotfiles/sourcer" /home/${USER}/.bashrc; then | ||
echo "Installing link to bashrc..." | ||
echo "source /home/${USER}/dotfiles/sourcer" >> ~/.bashrc | ||
fi | ||
|
||
if ! crontab -l | grep -q "cd /home/${USER}/dotfiles/ && git pull"; then | ||
echo "Installing crontab to update the repository regularly..." | ||
(crontab -l 2>/dev/null; echo "0 */3 * * * cd /home/${USER}/dotfiles/ && git pull") | crontab - | ||
fi | ||
|
||
echo "Linking configuration files..." | ||
ln -sf /home/${USER}/dotfiles/Configurations/gitconfig /home/${USER}/.gitconfig | ||
ln -sf /home/${USER}/dotfiles/Configurations/lazygit.yml /home/${USER}/.config/lazygit/config.yml | ||
|
||
echo "Finished 🎉" | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters