mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-27 15:30:15 +08:00
Add the singlechar plugin
This commit is contained in:
parent
1120f97305
commit
fcb153c2e3
24
plugins/singlechar/singlechar.plugin.zsh
Normal file
24
plugins/singlechar/singlechar.plugin.zsh
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
###########################
|
||||||
|
# Settings
|
||||||
|
#
|
||||||
|
# These can be overwritten any time.
|
||||||
|
# If they are not set yet, they will be
|
||||||
|
# overwritten with their default values
|
||||||
|
|
||||||
|
default GREP grep
|
||||||
|
default ROOT sudo
|
||||||
|
|
||||||
|
###########################
|
||||||
|
# Alias
|
||||||
|
|
||||||
|
alias y='"$GREP" -i'
|
||||||
|
alias n='"$GREP" -vi'
|
||||||
|
|
||||||
|
alias x='xargs'
|
||||||
|
alias xy='xargs "$GREP" -i'
|
||||||
|
alias xn='xargs "$GREP" -iv'
|
||||||
|
|
||||||
|
alias s='"$ROOT"'
|
||||||
|
alias sx='"$ROOT" xargs'
|
||||||
|
alias sxy='"$ROOT" xargs "$GREP" -i'
|
||||||
|
alias sxn='"$ROOT" xargs "$GREP" -iv'
|
Loading…
Reference in New Issue
Block a user