From d1bb9764b0345189e4682b3cd0e62222102ebb55 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Mon, 9 May 2022 17:02:31 -0700 Subject: [PATCH] ala: convert to shell function --- .config/shell/bin/ala | 4 ---- .config/shell/functions/ala | 8 ++++++++ 2 files changed, 8 insertions(+), 4 deletions(-) delete mode 100755 .config/shell/bin/ala create mode 100755 .config/shell/functions/ala diff --git a/.config/shell/bin/ala b/.config/shell/bin/ala deleted file mode 100755 index f01740c..0000000 --- a/.config/shell/bin/ala +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -# Runs zsh in alacritty. Good if you're put in some other terminal for some reason. - -nohup alacritty > /dev/null 2>&1 & diff --git a/.config/shell/functions/ala b/.config/shell/functions/ala new file mode 100755 index 0000000..662bc43 --- /dev/null +++ b/.config/shell/functions/ala @@ -0,0 +1,8 @@ +#!/bin/bash +# Re-open your shell in alacritty and exit the current shell. Good if you're +# put in another terminal for some reason and you want alacritty. + +ala() { + nohup alacritty > /dev/null 2>&1 & + exit +}