diff --git a/home/config/nvim/init.fnl b/home/config/nvim/init.fnl index c40ba31..4add6d2 100644 --- a/home/config/nvim/init.fnl +++ b/home/config/nvim/init.fnl @@ -6,7 +6,7 @@ ;; Various Options (set o.spelllang [:en :de]) (set o.showmode false) - (set o.modeline false) + (set o.modeline true) (set o.ruler false) (set o.cursorline true) (set o.list true) @@ -99,4 +99,3 @@ :group augroup}) (aucmd :InsertLeave {:callback #(ls.maybe-set-relativenumber true) :group augroup}))) - diff --git a/home/programs/scripts/attic-nedeco-devshells-cache b/home/programs/scripts/attic-nedeco-devshells-cache index ca8a8a7..df7d969 100755 --- a/home/programs/scripts/attic-nedeco-devshells-cache +++ b/home/programs/scripts/attic-nedeco-devshells-cache @@ -1,13 +1,20 @@ #!/usr/bin/env nix-shell -#!nix-shell -i bash -p fd jq +#!nix-shell -i bash -p git fd jq rg # shellcheck disable=SC1008 -jq -cr ".variables.pkgsBuildHost.value[]" "$(fd '^flake-profile-[a-z0-9]+$' ./.direnv/)" | while read -r dir; do - echo "Uploading $dir ..." +if git remote -v | rg -q nedeco; then + jq -cr ".variables.pkgsBuildHost.value[]" "$(fd '^flake-profile-[a-z0-9]+$' ./.direnv/)" | while read -r dir; do + echo "Uploading $dir ..." - if attic push nedeco:devshells "$dir"; then - continue - else - echo "Ignoring error ..." - fi -done + if attic push nedeco:devshells "$dir"; then + continue + else + echo "Ignoring error ..." + fi + done +else + echo "Doesn't look like a work repository" + exit 1 +fi + +# vim: set ft=sh: diff --git a/home/programs/scripts/copy-git-repo-contents b/home/programs/scripts/copy-git-repo-contents index 2d29d1c..d934a59 100755 --- a/home/programs/scripts/copy-git-repo-contents +++ b/home/programs/scripts/copy-git-repo-contents @@ -14,3 +14,5 @@ rm -rf ./.gitlab rm -f ./.gitlab-ci.yml cd "$current" || exit + +# vim: set ft=sh: