From 51a25e9acc203d05256664abcdfd5b9aec028392 Mon Sep 17 00:00:00 2001 From: Stephen Card Date: Mon, 7 Mar 2022 05:22:34 -0500 Subject: [PATCH 1/3] set 256 color --- tmux/.tmux.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 5461ddf..513be11 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -10,6 +10,7 @@ set -g @plugin 'jaclu/tmux-menus' # -- general set -g xterm-keys on +set -g default-terminal "screen-256color" # remap prefix to Control + a set -g prefix C-a unbind C-b From a543d00d476ec80fb9458cabf22e9c9bc82654ac Mon Sep 17 00:00:00 2001 From: stev Date: Fri, 18 Mar 2022 21:08:31 -0400 Subject: [PATCH 2/3] fedora dependency script --- fdeps.sh | 19 +++++++++++++++++++ init.sh | 3 +++ 2 files changed, 22 insertions(+) create mode 100755 fdeps.sh diff --git a/fdeps.sh b/fdeps.sh new file mode 100755 index 0000000..392f898 --- /dev/null +++ b/fdeps.sh @@ -0,0 +1,19 @@ +#!/bin/bash +#These are the programs I expect to find on any install + +echo "installing base dependencies" +sudo dnf install \ + git \ + stow \ + etckeeper \ + tmux \ + zsh \ + vim \ + powerline\ + htop \ + mc \ + curl \ + fzf \ + bat \ + duf + diff --git a/init.sh b/init.sh index 52f5c5f..1ad666c 100755 --- a/init.sh +++ b/init.sh @@ -11,6 +11,9 @@ case $answer in a) bash adeps.sh ;; + f) + bash fdeps.sh + ;; *) echo "Skipping installation of dependencies!" ;; From 6fe1dba8b1b9b99b51540cd3aceb5d96578ffde2 Mon Sep 17 00:00:00 2001 From: stev Date: Fri, 18 Mar 2022 21:20:10 -0400 Subject: [PATCH 3/3] functionized! --- init.sh | 51 ++++++++++++++++++++++++++++++--------------------- 1 file changed, 30 insertions(+), 21 deletions(-) diff --git a/init.sh b/init.sh index 1ad666c..f902a77 100755 --- a/init.sh +++ b/init.sh @@ -61,30 +61,39 @@ chmod 0700 ~/.ssh chmod -R 0600 ~/.ssh/* #Configure git user -echo -n "Would you like to configure your git name and email? (y/n) => "; read -r answer -if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then - echo -n "What is your git user name => "; read -r name - git config --global user.name "$name" - echo -n "What is your git email => "; read -r email - git config --global user.email "$email" -fi +git_user () { + echo -n "Would you like to configure your git name and email? (y/n) => "; read -r answer + if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then + echo -n "What is your git user name => "; read -r name + git config --global user.name "$name" + echo -n "What is your git email => "; read -r email + git config --global user.email "$email" + fi +} #install spacevim -if [ ! -e ~/.space-vim ]; then - echo "Install SpaceVim now? y/n"; read -r answer - if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then - mv "$HOME/.vim" "$HOME/vim_bk" - mv "$HOME/.vimrc" "$HOME/vimrc_bk" - (curl -sLf https://spacevim.org/install.sh | bash) - fi -fi - +spacevim () { + if [ ! -e ~/.space-vim ]; then + echo "Install SpaceVim now? y/n"; read -r answer + if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then + mv "$HOME/.vim" "$HOME/vim_bk" + mv "$HOME/.vimrc" "$HOME/vimrc_bk" + (curl -sLf https://spacevim.org/install.sh | bash) + fi + fi +} #install fonts for terminal -echo "installing fonts" -mkdir ~/.fonts -wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/SourceCodePro.zip -unzip SourceCodePro.zip -x '*Compatible.ttf' -d "$HOME/.fonts" -rm SourceCodePro.zip +fonts () { + echo "installing fonts" + mkdir ~/.fonts + wget -q https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/SourceCodePro.zip + unzip -q SourceCodePro.zip -x '*Compatible.ttf' -d "$HOME/.fonts" + rm SourceCodePro.zip +} + +git_user +spacevim +fonts echo "*******************************" echo "* Restart your terminal *"