Skip to content

Commit

Permalink
Perform old install from dot command
Browse files Browse the repository at this point in the history
  • Loading branch information
gbraad authored Jan 11, 2025
1 parent c01fd3b commit d172750
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 51 deletions.
51 changes: 0 additions & 51 deletions install.sh

This file was deleted.

1 change: 1 addition & 0 deletions install.sh
13 changes: 13 additions & 0 deletions zsh/.dot
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,16 @@
aliases=true
autoupdate=true
autostart=false

[stow]
git=false
powerline=true
zsh=true
tmux=true
vim=true
i3=true

[windows]
wsl=true
cygwin=true

61 changes: 61 additions & 0 deletions zsh/.zshrc.d/dotfiles.zsh
Original file line number Diff line number Diff line change
@@ -1,5 +1,66 @@
#!/bin/zsh

# Temporary including the old installation method
oldinstall() {
APTPKGS="git zsh stow"
RPMPKGS="git-core zsh stow"

# Crude multi-os installation option
if [ -x "/usr/bin/apt-get" ]
then
sudo apt-get install -y $APTPKGS
elif [ -x "/usr/bin/dnf" ]
then
sudo dnf install -y $RPMPKGS

# allow first-time system install
export SYSTEM_INSTALL=1
elif [ -x "/usr/bin/yum" ]
then
sudo yum install -y $RPMPKGS
fi

# Add missing directory layout
if [ ! -d "~/.config" ]
then
mkdir -p ~/.config
fi

mkdir -p ~/.local/bin
mkdir -p ~/.local/lib/python2.7/site-packages/

# Personal dotfiles
git clone https://github.com/gbraad/dotfiles.git ~/.dotfiles
cd ~/.dotfiles
git submodule update --init --progress

# stow the configurations
stow powerline
stow zsh
stow tmux
stow vim
#stow git
stow i3

# stow wsl specific stuff
if grep -qi Microsoft /proc/version; then
stow wsl
fi

# stow cygwin specific stuff
if [ "$OSTYPE" = "cygwin" ]
then
stow cygwin
fi
}

if [[ "$0" == *install.sh* ]]; then
echo "Performing install"
oldinstall
exit 0
fi


CONFIG="${HOME}/.dot"
alias dotini="git config -f $CONFIG"

Expand Down

0 comments on commit d172750

Please sign in to comment.