From bd555d87d4aa651fb3c1ca38bedc2472ee6386ea Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Fri, 23 Apr 2021 03:49:39 +0200 Subject: [PATCH] Add updatedevenv script --- script/installalacritty | 5 +++++ script/updatedevenv | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100755 script/updatedevenv diff --git a/script/installalacritty b/script/installalacritty index 8538c1f..298af40 100755 --- a/script/installalacritty +++ b/script/installalacritty @@ -4,6 +4,11 @@ # Note: run from ZSH in a different terminal emulator. set -e +if pgrep alacritty > /dev/null; then + echo "Error: alacritty is running. Kill it and retry." + exit 1 +fi + if ! [ -x "$(command -v cargo)" ]; then echo "Install Rust toolchain first" exit 1 diff --git a/script/updatedevenv b/script/updatedevenv new file mode 100755 index 0000000..a945987 --- /dev/null +++ b/script/updatedevenv @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +# +# Update development environment + +set -e + +updatealacritty +updatevim +updatevimplugins