-
Notifications
You must be signed in to change notification settings - Fork 3
/
ap.fish
25 lines (20 loc) · 1002 Bytes
/
ap.fish
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
set -q AUTO_PAGER_CMDS; or set AUTO_PAGER_CMDS \
ls tree find fd cat \
go cargo rustc \
grep egrep fgrep rg ack ag ucg pt sift \
brew port emerge apt apt-get aptitude
set -q AUTO_PAGER_CMDS_WITH_GRC; or set AUTO_PAGER_CMDS_WITH_GRC \
df du env id last lsof mount ps sysctl \
diff tar \
cc gcc g++ make mvn \
curl dig ifconfig iostat ip iptables iptables-save netstat \
ping ping6 tcpdump traceroute traceroute6 whois \
docker docker-compose docker-machine kubectl
for _cmd in $AUTO_PAGER_CMDS $AUTO_PAGER_CMDS_EXTRA;
[ "$_cmd" ]; and alias $_cmd "ap $_cmd"
end
type -p grc >/dev/null; and set _grc "grc "
for _cmd in $AUTO_PAGER_CMDS_WITH_GRC $AUTO_PAGER_CMDS_WITH_GRC_EXTRA;
[ "$_cmd" ]; and alias $_cmd "ap $_grc$_cmd"
end
set -e _cmd _grc