From 2dfacf571ac67fb96a7758ecd4e1a2484750ba8f Mon Sep 17 00:00:00 2001 From: punkfairie <23287005+punkfairie@users.noreply.github.com> Date: Sun, 10 Mar 2024 16:29:53 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=91=20perf(fish):=20Add=20various=20sy?= =?UTF-8?q?stem=20abbr's?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/fish/conf.d/30-journalctl.fish | 4 ++++ .config/fish/conf.d/30-systemctl.fish | 9 +++++++++ .config/fish/conf.d/30-yay.fish | 7 +++++++ 3 files changed, 20 insertions(+) create mode 100644 .config/fish/conf.d/30-journalctl.fish create mode 100644 .config/fish/conf.d/30-systemctl.fish create mode 100644 .config/fish/conf.d/30-yay.fish diff --git a/.config/fish/conf.d/30-journalctl.fish b/.config/fish/conf.d/30-journalctl.fish new file mode 100644 index 0000000..80459e4 --- /dev/null +++ b/.config/fish/conf.d/30-journalctl.fish @@ -0,0 +1,4 @@ +#!/usr/bin/env fish + +abbr -a jf --position command "sudo journalctl --follow --unit" +abbr -a je --position command "sudo journalctl --pager-end --unit" diff --git a/.config/fish/conf.d/30-systemctl.fish b/.config/fish/conf.d/30-systemctl.fish new file mode 100644 index 0000000..5dcfa02 --- /dev/null +++ b/.config/fish/conf.d/30-systemctl.fish @@ -0,0 +1,9 @@ +#!/usr/bin/env fish + +abbr -a sctl --position command "sudo systemctl" +abbr -a sctls --position command "sudo systemctl status" +abbr -a sctle --position command "sudo systemctl enable --now" +abbr -a sctld --position command "sudo systemctl disable --now" +abbr -a sctlr --position command "sudo systemctl restart" +abbr -a sctlo --position command "sudo systemctl stop" +abbr -a sctla --position command "sudo systemctl start" diff --git a/.config/fish/conf.d/30-yay.fish b/.config/fish/conf.d/30-yay.fish new file mode 100644 index 0000000..bc6f402 --- /dev/null +++ b/.config/fish/conf.d/30-yay.fish @@ -0,0 +1,7 @@ +#!/usr/bin/env fish + +abbr -a y --position command yay +abbr -a yi --position command "yay -S" +abbr -a yr --position command "yay -R" +abbr -a yc --position command "yay -Sc" +abbr -a yu --position command "yay -Syu"