From 108607223738358cab025f803759a0fbf3dadf70 Mon Sep 17 00:00:00 2001 From: Russell Riker Date: Mon, 5 Sep 2022 14:06:47 -0400 Subject: [PATCH 01/12] Inital commit of mysetup.sh --- mysetup.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 mysetup.sh diff --git a/mysetup.sh b/mysetup.sh new file mode 100755 index 0000000..3e81378 --- /dev/null +++ b/mysetup.sh @@ -0,0 +1,24 @@ +#!/usr/bin/bash + +######################################################### +# +# Create all the links to to my dotfiles and maybe it can go get other needed +# repos I might want, and tools?? +# 9/5/2022 +# +######################################################### + +# Might need to have differnt sections, like '-l' todo just the sym links +# -r to download my repos I want +# -a to go and apt install common apps I want on all my systems + + + +#bash files +ln -fs ~/mydev/my-dotfiles/.bashrc ~/.bashrc +ln -fs ~/mydel/my-dotfiles/.bash_alias ~/.bash_alias + +#git files +ln -fs ~/mydev/my-dotfiles/.gitconfig ~/.gitconfig + + From a9bd02086bf7fc54492abd6a98e3565b3ea9b85d Mon Sep 17 00:00:00 2001 From: Russell Riker Date: Mon, 5 Sep 2022 14:35:34 -0400 Subject: [PATCH 02/12] Updated readme. Inital commit of my-apt-apts.sh --- README.md | 8 ++++++++ my-apt-apts.sh | 24 ++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100755 my-apt-apts.sh diff --git a/README.md b/README.md index 444a0f1..6b0d41d 100644 --- a/README.md +++ b/README.md @@ -8,3 +8,11 @@ ### Why? One Repo to rule them all! Would like to come up with a script that is part of this repo that would setup all the symlinks to the files when I have a new linux vm or pc. + +### mysetup.sh + +Working on a setup script that will setup all +* Symlinks +* Grab needed repos +* if my machine will install need apps I like to have + diff --git a/my-apt-apts.sh b/my-apt-apts.sh new file mode 100755 index 0000000..c27aa77 --- /dev/null +++ b/my-apt-apts.sh @@ -0,0 +1,24 @@ +#!/usr/bin/bash + +########################################################################## +# +# ____ ___ __ __ ____ _____ / /_ ____ _____ ____ _____ +# / __ `__ \/ / / /_____/ __ `/ __ \/ __/_____/ __ `/ __ \/ __ \/ ___/ +# / / / / / / /_/ /_____/ /_/ / /_/ / /_/_____/ /_/ / /_/ / /_/ (__ ) +# /_/ /_/ /_/\__, / \__,_/ .___/\__/ \__,_/ .___/ .___/____/ +# /____/ /_/ /_/ /_/ +# +######################################################################### +# my-apt-apps.sh +# Apps I like to have on my machines + +# check if I'm logged on to the tilde.team, if so. Dont run this stuff +if [$HOSTNAME -ne 'tilde']; then + sudo apt install curl + sudo apt install lolcat + sudo apt install figlet + sudo apt install lynx + +fi + + From c37499666f9a5a24fc6f2e328faa7563475b0ee6 Mon Sep 17 00:00:00 2001 From: Russell Riker Date: Mon, 5 Sep 2022 15:18:17 -0400 Subject: [PATCH 03/12] Got it checking host correctly --- my-apt-apts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/my-apt-apts.sh b/my-apt-apts.sh index c27aa77..d517e36 100755 --- a/my-apt-apts.sh +++ b/my-apt-apts.sh @@ -13,12 +13,12 @@ # Apps I like to have on my machines # check if I'm logged on to the tilde.team, if so. Dont run this stuff -if [$HOSTNAME -ne 'tilde']; then +if [ $HOSTNAME != 'tilde' ]; then sudo apt install curl sudo apt install lolcat sudo apt install figlet sudo apt install lynx - + sudo apt install cowsay fi From 397dfc7d6f7517b5b372e02df06e0d8ea1cff90f Mon Sep 17 00:00:00 2001 From: Russell Riker Date: Mon, 5 Sep 2022 15:19:15 -0400 Subject: [PATCH 04/12] Fixed setting up the nvim links and checking if the foldres where there --- mysetup.sh | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/mysetup.sh b/mysetup.sh index 3e81378..ab8b0f5 100755 --- a/mysetup.sh +++ b/mysetup.sh @@ -1,7 +1,13 @@ -#!/usr/bin/bash +#!/bin/bash ######################################################### # +# __ __ +# ____ ___ __ __________ / /___ ______ _____/ /_ +# / __ `__ \/ / / / ___/ _ \/ __/ / / / __ \ / ___/ __ \ +# / / / / / / /_/ (__ ) __/ /_/ /_/ / /_/ / (__ ) / / / +# /_/ /_/ /_/\__, /____/\___/\__/\__,_/ .___(_)____/_/ /_/ +# /____/ /_/ # Create all the links to to my dotfiles and maybe it can go get other needed # repos I might want, and tools?? # 9/5/2022 @@ -15,10 +21,34 @@ #bash files +echo "Linking bash config files" ln -fs ~/mydev/my-dotfiles/.bashrc ~/.bashrc ln -fs ~/mydel/my-dotfiles/.bash_alias ~/.bash_alias #git files +echo "Linking git config files" ln -fs ~/mydev/my-dotfiles/.gitconfig ~/.gitconfig +#vimrc file +ln -fs ~/mydev/my-dotfiles/.vimrc ~/.vimrc + +#neovim config +#check if nvim folder is there, if not create it +if [ ! -d "~/.config" ]; then + echo "~/.config folder not found. creating it" + mkdir ~/.config +fi + +if [ ! -d "~/.config/nvim" ]; then + # folder there, just create link + echo "nvim folder not found, creating it" + mkdir ~/.config/nvim +fi + +echo "Link nvim config files" +ln -fs ~/mydev/my-dotfiles/init.vim ~/.config/nvim/init.vim +ln -fs ~/mydev/my-dotfiles/plugins-to-load.vim ~/.config/nvim/plugins-to-load.vim +ln -fs ~/mydev/my-dotfiles/fzf-plugin-settings.vim ~/.config/nvim/fzf-plugin-settings.vim +ln -fs ~/mydev/my-dotfiles/nvim-basic-settings.vim ~/.config/nvim/nvim-basic-settings.vim + From 52a0d449831657bb62badc35dbb0298119b6df62 Mon Sep 17 00:00:00 2001 From: Russell Riker Date: Mon, 5 Sep 2022 15:19:59 -0400 Subject: [PATCH 05/12] Added new header --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6b0d41d..eba1690 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,17 @@ # Wasabi .dotfiles - +''' + __ __ _____ __ + ____ ___ __ __ ____/ /___ / /_/ __(_) /__ _____ + / __ `__ \/ / / /_____/ __ / __ \/ __/ /_/ / / _ \/ ___/ + / / / / / / /_/ /_____/ /_/ / /_/ / /_/ __/ / / __(__ ) +/_/ /_/ /_/\__, / \__,_/\____/\__/_/ /_/_/\___/____/ + /____/ + ____ ____ ___ + / __ \___ ____ _____/ / |/ /__ + / /_/ / _ \/ __ `/ __ / /|_/ / _ \ + / _, _/ __/ /_/ / /_/ / / / / __/ +/_/ |_|\___/\__,_/\__,_/_/ /_/\___/ +''' ## my-dotfiles repo, hosted at tildegit.org From bfd2c6759229dcf0ab5755cf34c9a3e4f6a042f4 Mon Sep 17 00:00:00 2001 From: Russell R Date: Mon, 5 Sep 2022 19:21:51 +0000 Subject: [PATCH 06/12] trying to fix the header --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index eba1690..19a91cb 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Wasabi .dotfiles -''' + __ __ _____ __ ____ ___ __ __ ____/ /___ / /_/ __(_) /__ _____ / __ `__ \/ / / /_____/ __ / __ \/ __/ /_/ / / _ \/ ___/ @@ -11,7 +11,7 @@ / /_/ / _ \/ __ `/ __ / /|_/ / _ \ / _, _/ __/ /_/ / /_/ / / / / __/ /_/ |_|\___/\__,_/\__,_/_/ /_/\___/ -''' + ## my-dotfiles repo, hosted at tildegit.org From b81a944e882824160bf82a827516cee69784f4de Mon Sep 17 00:00:00 2001 From: Russell R Date: Mon, 5 Sep 2022 19:25:09 +0000 Subject: [PATCH 07/12] still fixing header --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 19a91cb..4928a58 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Wasabi .dotfiles - +```txt __ __ _____ __ ____ ___ __ __ ____/ /___ / /_/ __(_) /__ _____ / __ `__ \/ / / /_____/ __ / __ \/ __/ /_/ / / _ \/ ___/ @@ -11,7 +11,7 @@ / /_/ / _ \/ __ `/ __ / /|_/ / _ \ / _, _/ __/ /_/ / /_/ / / / / __/ /_/ |_|\___/\__,_/\__,_/_/ /_/\___/ - +``` ## my-dotfiles repo, hosted at tildegit.org From 54045f89da44bd823991209a6549a732f9b45c6f Mon Sep 17 00:00:00 2001 From: Russell Riker Date: Mon, 5 Sep 2022 15:31:58 -0400 Subject: [PATCH 08/12] Updated alias cat to cat=bat instead of catbat --- .bash_aliases | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bash_aliases b/.bash_aliases index e03781f..274e3be 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -39,7 +39,7 @@ alias vi='nvim' alias ni='nvim' # bat, cat with wings -alias cat='batcat' +alias cat='bat' # apt aliass alias aptud='sudo apt update' From 839152facd94ba032f6b5e6197236068f1b311ed Mon Sep 17 00:00:00 2001 From: Russell Riker Date: Tue, 6 Sep 2022 15:22:59 -0400 Subject: [PATCH 09/12] Read apps from a file and loop over them Reads the apps to be installed my-apps.txt and installed. Checks first if there is a my-apps.txt file. Need to make a better exit if there isn't --- my-apt-apts.sh | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/my-apt-apts.sh b/my-apt-apts.sh index d517e36..8680509 100755 --- a/my-apt-apts.sh +++ b/my-apt-apts.sh @@ -1,5 +1,6 @@ #!/usr/bin/bash + ########################################################################## # # ____ ___ __ __ ____ _____ / /_ ____ _____ ____ _____ @@ -14,11 +15,22 @@ # check if I'm logged on to the tilde.team, if so. Dont run this stuff if [ $HOSTNAME != 'tilde' ]; then - sudo apt install curl - sudo apt install lolcat - sudo apt install figlet - sudo apt install lynx - sudo apt install cowsay -fi + # Can I check for a a file of apps, and if it's there, read it into $APPS? + if [ -f ~/mydev/my-dotfiles/my-apps.txt ]; then + while read APPS + do + echo "\n******************************************\n Installing: $APPS" + sudo apt install $APPS + done < my-apps.txt + fi # End If apps file lookup + +# for APPS in curl lolcat figlet cowsay lynx +# do +# sudo apt install $APPS +# echo "Intalling $APPS" +# echo " " +# done + +fi # endif HOSTNAME From e5c4afb8e762baea5d7943080e6b8a4c69a891bf Mon Sep 17 00:00:00 2001 From: Russell Riker Date: Tue, 6 Sep 2022 15:24:47 -0400 Subject: [PATCH 10/12] -m --- my-apps.txt | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 my-apps.txt diff --git a/my-apps.txt b/my-apps.txt new file mode 100644 index 0000000..0131aa0 --- /dev/null +++ b/my-apps.txt @@ -0,0 +1,6 @@ +curl +figlet +cowsay +lynx +lolcat + From 9d96fab25f1c43086ef52bcc59420c388f83904f Mon Sep 17 00:00:00 2001 From: Russell Riker Date: Tue, 6 Sep 2022 15:30:18 -0400 Subject: [PATCH 11/12] Updated the list of apps Use this "cat /var/log/apt/history.log |grep install| awk '{print $4}' > my-apps.txt" Got a nice little list of all the apt install commands run. --- my-apps.txt | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/my-apps.txt b/my-apps.txt index 0131aa0..ba1f156 100644 --- a/my-apps.txt +++ b/my-apps.txt @@ -1,6 +1,20 @@ -curl +-qq +mosh +fish +neovim +pip figlet -cowsay -lynx +gh lolcat - +keychain +bat +golang +cmatrix +chuck +aptitude +xcowsay +snap +hollywood +fzf +speedtest-cli +cowsay From e034ec7e1a17cac577b4cace089f5f9ed2718922 Mon Sep 17 00:00:00 2001 From: Russell Riker Date: Tue, 6 Sep 2022 16:44:18 -0400 Subject: [PATCH 12/12] Updated list of apps --- my-apps.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/my-apps.txt b/my-apps.txt index ba1f156..52b01ac 100644 --- a/my-apps.txt +++ b/my-apps.txt @@ -1,4 +1,3 @@ --qq mosh fish neovim @@ -18,3 +17,4 @@ hollywood fzf speedtest-cli cowsay +ncdu