From the ground up!
Basic options for neovim Simple install script to pull changes from the system
This commit is contained in:
24
install
Executable file
24
install
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
Pull() {
|
||||
# Allows system changes to be pulled into the repository to be committed
|
||||
#
|
||||
echo "[Info] :: Pulling dotfile changes from $1"
|
||||
|
||||
cp -r "$1/.config/nvim" "config/"
|
||||
}
|
||||
|
||||
INSTALL_DIR=${2:-$HOME}
|
||||
ACTION=${1:-push}
|
||||
|
||||
[[ -z $INSTALL_DIR ]] && echo "[Error] :: Installation directory not set" && exit 1
|
||||
|
||||
case $ACTION in
|
||||
pull)
|
||||
Pull $INSTALL_DIR
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 <push|pull|diff> [dir]"
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user