Finish migrating from ag to rg
This commit is contained in:
@@ -62,7 +62,6 @@ alias grep='grep --line-buffered --color=auto'
|
|||||||
alias ipt='iptables -nvL --line-numbers'
|
alias ipt='iptables -nvL --line-numbers'
|
||||||
alias ip6t='ip6tables -nvL --line-numbers'
|
alias ip6t='ip6tables -nvL --line-numbers'
|
||||||
alias tcpdump='tcpdump -l'
|
alias tcpdump='tcpdump -l'
|
||||||
alias ag='ag -C 2 --noaffinity --pager="$PAGER" --smart-case'
|
|
||||||
alias mysql='mysql --select_limit=1000'
|
alias mysql='mysql --select_limit=1000'
|
||||||
alias logcat='adb logcat -v "color printable usec year zone" -T 10'
|
alias logcat='adb logcat -v "color printable usec year zone" -T 10'
|
||||||
alias readelf='readelf -W'
|
alias readelf='readelf -W'
|
||||||
@@ -81,6 +80,10 @@ starttransfer: %{time_starttransfer} | \
|
|||||||
total: %{time_total} | \
|
total: %{time_total} | \
|
||||||
size: %{size_download}\n"'
|
size: %{size_download}\n"'
|
||||||
|
|
||||||
|
rg() {
|
||||||
|
command rg -C 2 --smart-case --pretty "$@" | pager
|
||||||
|
}
|
||||||
|
|
||||||
# nix-deploy # current host
|
# nix-deploy # current host
|
||||||
# nix-deploy nas # deploy nas
|
# nix-deploy nas # deploy nas
|
||||||
# nix-deploy test secondary # deploy secondary but do not add to boot
|
# nix-deploy test secondary # deploy secondary but do not add to boot
|
||||||
|
|||||||
Reference in New Issue
Block a user