Merge branch 'master' of github.com:steveokard/stevset

This commit is contained in:
Stefen Auris 2022-03-25 04:34:02 -04:00
commit e3368f62d2
3 changed files with 53 additions and 21 deletions

19
fdeps.sh Executable file
View file

@ -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

54
init.sh
View file

@ -11,6 +11,9 @@ case $answer in
a) a)
bash adeps.sh bash adeps.sh
;; ;;
f)
bash fdeps.sh
;;
*) *)
echo "Skipping installation of dependencies!" echo "Skipping installation of dependencies!"
;; ;;
@ -58,30 +61,39 @@ chmod 0700 ~/.ssh
chmod -R 0600 ~/.ssh/* chmod -R 0600 ~/.ssh/*
#Configure git user #Configure git user
echo -n "Would you like to configure your git name and email? (y/n) => "; read -r answer git_user () {
if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then echo -n "Would you like to configure your git name and email? (y/n) => "; read -r answer
echo -n "What is your git user name => "; read -r name if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then
git config --global user.name "$name" echo -n "What is your git user name => "; read -r name
echo -n "What is your git email => "; read -r email git config --global user.name "$name"
git config --global user.email "$email" echo -n "What is your git email => "; read -r email
fi git config --global user.email "$email"
fi
}
#install spacevim #install spacevim
if [ ! -e ~/.space-vim ]; then spacevim () {
echo "Install SpaceVim now? y/n"; read -r answer if [ ! -e ~/.space-vim ]; then
if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then echo "Install SpaceVim now? y/n"; read -r answer
mv "$HOME/.vim" "$HOME/vim_bk" if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then
mv "$HOME/.vimrc" "$HOME/vimrc_bk" mv "$HOME/.vim" "$HOME/vim_bk"
(curl -sLf https://spacevim.org/install.sh | bash) mv "$HOME/.vimrc" "$HOME/vimrc_bk"
fi (curl -sLf https://spacevim.org/install.sh | bash)
fi fi
fi
}
#install fonts for terminal #install fonts for terminal
echo "installing fonts" fonts () {
mkdir ~/.fonts echo "installing fonts"
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/SourceCodePro.zip mkdir ~/.fonts
unzip SourceCodePro.zip -x '*Compatible.ttf' -d "$HOME/.fonts" wget -q https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/SourceCodePro.zip
rm SourceCodePro.zip unzip -q SourceCodePro.zip -x '*Compatible.ttf' -d "$HOME/.fonts"
rm SourceCodePro.zip
}
git_user
spacevim
fonts
echo "*******************************" echo "*******************************"
echo "* Restart your terminal *" echo "* Restart your terminal *"

View file

@ -10,6 +10,7 @@ set -g @plugin 'jaclu/tmux-menus'
# -- general # -- general
set -g xterm-keys on set -g xterm-keys on
set -g default-terminal "screen-256color"
# remap prefix to Control + a # remap prefix to Control + a
set -g prefix C-a set -g prefix C-a
unbind C-b unbind C-b