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