mirror of
https://github.com/lordmathis/dotfiles.git
synced 2025-11-05 17:24:22 +00:00
Add install script
This commit is contained in:
14
install.sh
Executable file
14
install.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/zsh
|
||||
|
||||
if [ $# -eq 0 ]
|
||||
then
|
||||
echo "Git branch name missing"
|
||||
fi
|
||||
|
||||
echo ".dotfiles" >> $HOME/.gitignore
|
||||
git clone --bare git@git.namesny.com:Mathis/dotfiles.git $HOME/.dotfiles
|
||||
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
||||
config checkout $1
|
||||
config submodule init
|
||||
config submodule update
|
||||
source .zshrc
|
||||
Reference in New Issue
Block a user