install: remove dotfiles terminology

This commit is contained in:
Charles Gould 2020-07-08 02:20:29 -04:00
parent 35e58afbef
commit 35aa8b0ef4
4 changed files with 16 additions and 18 deletions

View File

@ -1,6 +1,4 @@
## Dotfiles ## Config files
Developer config files.
| Tool | Description | | Tool | Description |
| -------- | ----------- | | -------- | ----------- |

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
DOTFILES=$(cd "$(dirname "$0")" && pwd) ROOTDIR=$(cd "$(dirname "$0")" && pwd)
confirm() { confirm() {
local prompt="$1 [Y/n] " local prompt="$1 [Y/n] "
@ -18,14 +18,14 @@ confirm() {
# Install tools # Install tools
if [[ "$OSTYPE" == linux-gnu* ]]; then if [[ "$OSTYPE" == linux-gnu* ]]; then
confirm "Install Nix?" && "$DOTFILES/install/install-nix.sh" confirm "Install Nix?" && "$ROOTDIR/install/install-nix.sh"
confirm "Install Nix packages?" && "$DOTFILES/install/install-nix-packages.sh" confirm "Install Nix packages?" && "$ROOTDIR/install/install-nix-packages.sh"
elif [[ "$OSTYPE" == darwin* ]]; then elif [[ "$OSTYPE" == darwin* ]]; then
confirm "Install Homebrew?" && "$DOTFILES/install/install-brew.sh" confirm "Install Homebrew?" && "$ROOTDIR/install/install-brew.sh"
confirm "Install Homebrew packages?" && "$DOTFILES/install/install-brew-packages.sh" confirm "Install Homebrew packages?" && "$ROOTDIR/install/install-brew-packages.sh"
fi fi
# Extra steps # Extra steps
confirm "Set login shell?" && "$DOTFILES/install/install-shell.sh" confirm "Set login shell?" && "$ROOTDIR/install/install-shell.sh"
confirm "Create symlinks?" && "$DOTFILES/install/install-symlinks.sh" confirm "Create symlinks?" && "$ROOTDIR/install/install-symlinks.sh"
confirm "Install vim plugins?" && "$DOTFILES/install/install-vim-plugins.sh" confirm "Install vim plugins?" && "$ROOTDIR/install/install-vim-plugins.sh"

View File

@ -2,7 +2,7 @@
echo "***** INSTALL HOMEBREW PACKAGES *****" echo "***** INSTALL HOMEBREW PACKAGES *****"
DOTFILES=$(cd "$(dirname "$0")/.." && pwd) ROOTDIR=$(cd "$(dirname "$0")/.." && pwd)
# Install required tools # Install required tools
brew install \ brew install \
@ -16,6 +16,6 @@ brew install \
tree tree
# Install optional tools (prompted by fzf) # Install optional tools (prompted by fzf)
"$DOTFILES/install/install-brew-extra.fish" "$ROOTDIR/install/install-brew-extra.fish"
echo echo

View File

@ -2,7 +2,7 @@
echo "***** INSTALL SYMLINKS *****" echo "***** INSTALL SYMLINKS *****"
DOTFILES=$(cd "$(dirname "$0")/.." && pwd) ROOTDIR=$(cd "$(dirname "$0")/.." && pwd)
backup_existing() { backup_existing() {
if [ -e "$1" ]; then if [ -e "$1" ]; then
@ -22,9 +22,9 @@ backup_existing "$HOME/.config/nvim"
backup_existing "$HOME/.config/git" backup_existing "$HOME/.config/git"
# Create symlinks, forcing updates # Create symlinks, forcing updates
ln -fsv "$DOTFILES/bash/.bashrc" "$HOME/.bashrc" # Bash does not support XDG config ln -fsv "$ROOTDIR/bash/.bashrc" "$HOME/.bashrc" # Bash does not support XDG config
ln -fsv "$DOTFILES/fish" "$HOME/.config" ln -fsv "$ROOTDIR/fish" "$HOME/.config"
ln -fsv "$DOTFILES/nvim" "$HOME/.config" ln -fsv "$ROOTDIR/nvim" "$HOME/.config"
ln -fsv "$DOTFILES/git" "$HOME/.config" ln -fsv "$ROOTDIR/git" "$HOME/.config"
echo echo