mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
Add srcless alias.
This commit is contained in:
8
dotfiles/zshrc.d/lesshighlight.zsh
Normal file
8
dotfiles/zshrc.d/lesshighlight.zsh
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
test -f /usr/share/source-highlight/src-hilite-lesspipe.sh && \
|
||||||
|
function srcless {
|
||||||
|
if [ $# -ne 1 ] ; then
|
||||||
|
echo "$0 <what>" > /dev/stderr
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
/usr/share/source-highlight/src-hilite-lesspipe.sh $1 | less -R
|
||||||
|
}
|
||||||
@@ -37,6 +37,7 @@ radare2
|
|||||||
scapy
|
scapy
|
||||||
scdaemon
|
scdaemon
|
||||||
socat
|
socat
|
||||||
|
source-highlight
|
||||||
sqlite3
|
sqlite3
|
||||||
ufw
|
ufw
|
||||||
zsh-syntax-highlighting
|
zsh-syntax-highlighting
|
||||||
|
|||||||
Reference in New Issue
Block a user