2016-06-19 01:18:18 +02:00
|
|
|
#!/usr/bin/env fish
|
2017-03-28 05:19:42 +02:00
|
|
|
#
|
|
|
|
# To load in ~/.config/fish/fish.conf or a new file in
|
|
|
|
# ~/.config/fish/conf.d add:
|
|
|
|
# source /etc/grc.fish (path may depend on install method)
|
|
|
|
#
|
|
|
|
# See also the plugin at https://github.com/oh-my-fish/plugin-grc
|
2016-06-19 01:18:18 +02:00
|
|
|
|
|
|
|
set -U grc_plugin_execs cat cvs df diff dig gcc g++ ls ifconfig \
|
2017-03-28 05:19:42 +02:00
|
|
|
make mount mtr netstat ping ps tail traceroute \
|
2019-07-24 10:26:44 +02:00
|
|
|
wdiff blkid du dnf docker docker-compose docker-machine env id ip iostat kubectl \
|
2017-04-21 10:25:42 +02:00
|
|
|
last lsattr lsblk lspci lsmod lsof getfacl getsebool ulimit uptime nmap \
|
2017-11-24 00:44:36 +01:00
|
|
|
fdisk findmnt free semanage sar ss sysctl systemctl stat showmount \
|
2019-07-24 10:26:44 +02:00
|
|
|
tcpdump tune2fs vmstat w who
|
2017-03-28 05:19:42 +02:00
|
|
|
|
|
|
|
for executable in $grc_plugin_execs
|
|
|
|
if type -q $executable
|
2018-02-23 12:32:10 +01:00
|
|
|
function $executable --inherit-variable executable --wraps=$executable
|
|
|
|
if isatty 1
|
|
|
|
grc $executable $argv
|
|
|
|
else
|
|
|
|
eval command $executable $argv
|
|
|
|
end
|
|
|
|
end
|
2017-03-28 05:19:42 +02:00
|
|
|
end
|
|
|
|
end
|