From b218b9cb2fbd20b4eecc3e51d61050e83ea7b223 Mon Sep 17 00:00:00 2001 From: ache Date: Wed, 4 Mar 2026 16:00:13 +0100 Subject: docs: Add note about aliases --- functions/groot.fish | 1 + functions/less.fish | 2 +- functions/lksp.fish | 6 +++--- functions/msf.fish | 1 + functions/msteam.fish | 3 ++- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/functions/groot.fish b/functions/groot.fish index 2bb58fb..6a01b39 100644 --- a/functions/groot.fish +++ b/functions/groot.fish @@ -1 +1,2 @@ +# NOTE: Go back to root directory in a git repository alias groot="cd (git rev-parse --show-toplevel)" diff --git a/functions/less.fish b/functions/less.fish index 5b43521..2ff72a8 100644 --- a/functions/less.fish +++ b/functions/less.fish @@ -1,4 +1,4 @@ -# Support for escape sequences. +# NOTE: Support for escape sequences. alias less='less -R' # Each line is assumed to start without color. diff --git a/functions/lksp.fish b/functions/lksp.fish index 50bf30e..d6d3837 100644 --- a/functions/lksp.fish +++ b/functions/lksp.fish @@ -1,8 +1,8 @@ -# Compute link speed of every interfaces +# NOTE: Compute link speed of every interfaces function lksp for link in /sys/class/net/* - if cat $link/speed 2> /dev/null 1>&2 - echo (basename $link)": " (cat $link/speed) "Mb/s" + if cat $link/speed 2>/dev/null 1>&2 + echo (basename $link)": " (cat $link/speed) Mb/s else echo (basename $link)": - Mb/s" end diff --git a/functions/msf.fish b/functions/msf.fish index fc9d99e..97961bb 100644 --- a/functions/msf.fish +++ b/functions/msf.fish @@ -1 +1,2 @@ +# NOTE: Connect to the local MetaSpoil Framework alias msf="msfconsole --quiet -x \"db_connect $USER@msf\"" diff --git a/functions/msteam.fish b/functions/msteam.fish index aef75a2..971b492 100644 --- a/functions/msteam.fish +++ b/functions/msteam.fish @@ -1 +1,2 @@ -alias msteam='steam +open steam://open/minigameslis' +# NOTE: Launch steam in a very small mode +alias msteam='steam +open steam://open/minigameslist' -- cgit v1.3-2-g11bf