mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Added dot-env plugin
Dot-env is a cross-platform, cascading Zsh environment system for those who work on different hardware and OS environments. See: https://github.com/midwire/.env
This commit is contained in:
parent
f4944d5a95
commit
ae2db75f3e
20 changed files with 629 additions and 0 deletions
4
plugins/dot-env/os/SunOS/alias.sh
Normal file
4
plugins/dot-env/os/SunOS/alias.sh
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# Solaris Environment Aliases
|
||||
|
||||
# Editing and Sourcing aliases
|
||||
alias ees='. ~/.env/source.sh'
|
||||
13
plugins/dot-env/os/SunOS/functions.sh
Normal file
13
plugins/dot-env/os/SunOS/functions.sh
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
function rgrep {
|
||||
if [[ $# -lt 1 ]]; then
|
||||
echo "Usage: rgrep PATTERN [PATH]"
|
||||
return
|
||||
fi
|
||||
pattern="$1"
|
||||
if [[ -z "$2" ]]; then
|
||||
path=`pwd`
|
||||
else
|
||||
path="$2"
|
||||
fi
|
||||
find -L "$path"|xargs grep "$pattern"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue