docs and formatting updates
This commit is contained in:
@@ -6,7 +6,7 @@ Tested on and compatible with:
|
||||
|
||||
## Install
|
||||
|
||||
source <(wget https://raw.githubusercontent.com/andrejusk/dotfiles/master/bootstrap.sh)
|
||||
bash <(wget https://raw.githubusercontent.com/andrejusk/dotfiles/master/bootstrap.sh)
|
||||
|
||||
_Running the above without reading through repository is strongly discouraged._
|
||||
|
||||
|
||||
24
bootstrap.sh
24
bootstrap.sh
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Script to set up and install dotfiles repository.
|
||||
# Script to set up dotfiles repository and run installer.
|
||||
#
|
||||
# Installs git using apt-get if not in $PATH.
|
||||
# Pulls latest dotfiles repository.
|
||||
@@ -8,18 +8,18 @@
|
||||
#
|
||||
# Usage:
|
||||
#
|
||||
# i. Source into existing bash shell.
|
||||
#
|
||||
# $ source bootstrap.sh
|
||||
# $ source path/to/bootstrap.sh
|
||||
# $ source <(wget path.to/bootstrap.sh)
|
||||
#
|
||||
# ii. Run in new bash shell.
|
||||
# i. Run in new bash shell.
|
||||
#
|
||||
# $ bash bootstrap.sh
|
||||
# $ bash path/to/bootstrap.sh
|
||||
# $ bash <(wget path.to/bootstrap.sh)
|
||||
#
|
||||
# ii. Source into existing bash shell.
|
||||
#
|
||||
# $ source bootstrap.sh
|
||||
# $ source path/to/bootstrap.sh
|
||||
# $ source <(wget path.to/bootstrap.sh)
|
||||
#
|
||||
#
|
||||
# Configuration:
|
||||
#
|
||||
@@ -34,16 +34,12 @@ set -o pipefail
|
||||
echo "setting up..."
|
||||
|
||||
# Variables: git
|
||||
if [ -z "$REPOSITORY" ]; then
|
||||
export REPOSITORY="andrejusk/dotfiles"
|
||||
fi
|
||||
if [ -z "$REPOSITORY" ]; then export REPOSITORY="andrejusk/dotfiles"; fi
|
||||
readonly repository_url="https://github.com/$REPOSITORY.git"
|
||||
echo "using repository: $repository_url"
|
||||
|
||||
# Variables: workspace
|
||||
if [ -z "$WORKSPACE" ]; then
|
||||
export WORKSPACE="$HOME/workspace"
|
||||
fi
|
||||
if [ -z "$WORKSPACE" ]; then export WORKSPACE="$HOME/workspace"; fi
|
||||
readonly dotfiles_dir="$WORKSPACE/dotfiles"
|
||||
echo "using dir: $dotfiles_dir"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user