ping fish 色
brew install grc
~/.config/fish/config.fish source /usr/local/etc/grc.fish
これやると
export CLICOLOR=1 export LSCOLORS="GxFxCxDxBxegedabagaced" とかで ls(ll)のフォルダの色を変更していた場合 にフォルダの色がつかなくなるので
下記からlsを外しておく
vim /usr/local/etc/grc.fish #!/usr/bin/env fish # # 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 #set -U grc_plugin_execs cat cvs df diff dig gcc g++ ls ifconfig \ set -U grc_plugin_execs cat cvs df diff dig gcc g++ ifconfig \ make mount mtr netstat ping ps tail traceroute \ wdiff blkid du dnf docker docker-machine env id ip iostat \ last lsattr lsblk lspci lsmod lsof getfacl getsebool ulimit uptime nmap \ fdisk findmnt free semanage sar ss sysctl systemctl stat showmount \ tcpdump tune2fs vmstat w who for executable in $grc_plugin_execs if type -q $executable function $executable --inherit-variable executable --wraps=$executable if isatty 1 grc $executable $argv else eval command $executable $argv end end end end
追記
> ping fish: Unknown command: grc /usr/local/etc/grc.fish (line 21): grc $executable $argv ^ in function 'ping'