1
0

Added building via shell in neovim

Display diagnostics inline to buffer
List compile errors/warnings in quickfix list
Added 'push' command to install script
Make sure install script executes from the correct directory
This commit is contained in:
2025-09-24 23:03:16 +01:00
parent d0ba7f74b1
commit ce611a0e14
2 changed files with 109 additions and 6 deletions

19
install
View File

@@ -1,6 +1,18 @@
#!/bin/sh
set -e
pushd "$(dirname $0)" > /dev/null
Push() {
# Installs current dotfiles onto the system
#
echo "[Info] :: Installing dotfiles into $1"
[[ ! -d "$1" ]] && mkdir -p "$1"
cp -RT "config" "$1/.config"
}
Pull() {
# Allows system changes to be pulled into the repository to be committed
#
@@ -10,11 +22,14 @@ Pull() {
}
INSTALL_DIR=${2:-$HOME}
ACTION=${1:-push}
ACTION=$1
[[ -z $INSTALL_DIR ]] && echo "[Error] :: Installation directory not set" && exit 1
case $ACTION in
push)
Push $INSTALL_DIR
;;
pull)
Pull $INSTALL_DIR
;;
@@ -22,3 +37,5 @@ case $ACTION in
echo "usage: $0 <push|pull|diff> [dir]"
;;
esac
popd > /dev/null