removed windows and linux split subdir
This commit is contained in:
parent
83dda10fa8
commit
065b982734
280 changed files with 9053 additions and 426 deletions
17
.antidote/tests/functions/subenv
Normal file
17
.antidote/tests/functions/subenv
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/zsh
|
||||
#function subenv {
|
||||
emulate -L zsh; setopt local_options
|
||||
|
||||
if (( $# == 0 )); then
|
||||
set -- HOME
|
||||
fi
|
||||
|
||||
local -a sedargs=(-e "s|\$HOME|$HOME|g")
|
||||
while (( $# )); do
|
||||
if [[ -v "$1" ]]; then
|
||||
sedargs+=(-e "s|${(P)1}|\$$1|g")
|
||||
fi
|
||||
shift
|
||||
done
|
||||
sed "$sedargs[@]"
|
||||
#}
|
||||
Loading…
Add table
Add a link
Reference in a new issue