aboutsummaryrefslogtreecommitdiffstats
path: root/modules/by-name/fi/fish/config/01_show-task.fish
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--[-rwxr-xr-x]modules/by-name/fi/fish/config/01_show-task.fish (renamed from modules/by-name/lf/lf/wrappers/lm/lm.sh)22
1 files changed, 7 insertions, 15 deletions
diff --git a/modules/by-name/lf/lf/wrappers/lm/lm.sh b/modules/by-name/fi/fish/config/01_show-task.fish
index 71213721..21db1112 100755..100644
--- a/modules/by-name/lf/lf/wrappers/lm/lm.sh
+++ b/modules/by-name/fi/fish/config/01_show-task.fish
@@ -1,4 +1,4 @@
-#!/usr/bin/env dash
+#!/usr/bin/env fish
# nixos-config - My current NixOS configuration
#
@@ -10,19 +10,11 @@
# You should have received a copy of the License along with this program.
# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
-die() {
- echo "ERROR: $1"
- exit 1
-}
+# Display current tasks
+test -z "$NVIM"; and task next
-msg() {
- echo "$1"
-}
+# Empty the default greeting
+set --global fish_greeting ""
-if [ -f "$XDG_RUNTIME_DIR/ll/last_directory" ]; then
- last_dir="$(cat "$XDG_RUNTIME_DIR/ll/last_directory")"
- cd "$last_dir" || die "$last_dir does not exist!"
-else
- msg "No last directory saved (try using ll instead)."
-fi
-# vim: ft=sh
+# Set a nice theme
+fish_config theme choose ayu