1
Fork 0
mirror of https://github.com/Steffo99/config-fish.git synced 2024-12-22 14:54:23 +00:00

Add some more aliases

This commit is contained in:
Steffo 2021-12-06 19:16:20 +01:00
parent cb130473a8
commit 254ecfb7b5
Signed by: steffo
GPG key ID: 6965406171929D01
6 changed files with 18 additions and 0 deletions

3
conf.d/rubygems.fish Normal file
View file

@ -0,0 +1,3 @@
fish_add_path "/home/steffo/.local/share/gem/ruby/3.0.0/bin"
fish_add_path "/home/steffo/.gem/ruby/3.0.0/bin"

3
functions/sd+.fish Normal file
View file

@ -0,0 +1,3 @@
function sd+ --wraps='systemctl start' --wraps='systemctl enable --now' --description 'alias sd+ systemctl enable --now'
systemctl enable --now $argv;
end

3
functions/sd-.fish Normal file
View file

@ -0,0 +1,3 @@
function sd- --wraps='systemctl stop' --wraps='systemctl disable --now' --description 'alias sd- systemctl disable --now'
systemctl disable --now $argv;
end

3
functions/sdl.fish Normal file
View file

@ -0,0 +1,3 @@
function sdl --wraps='journalctl -u' --description 'alias sdl journalctl -u'
journalctl -u $argv;
end

3
functions/sdr.fish Normal file
View file

@ -0,0 +1,3 @@
function sdr --wraps='systemctl restart' --description 'alias sdr systemctl restart'
systemctl restart $argv;
end

3
functions/sds.fish Normal file
View file

@ -0,0 +1,3 @@
function sds --wraps='systemctl status' --description 'alias sds systemctl status'
systemctl status $argv;
end