first commit
This commit is contained in:
commit
0610f4aeab
130 changed files with 9897 additions and 0 deletions
25
fn/-z4h-postinstall-zsh-you-should-use
Normal file
25
fn/-z4h-postinstall-zsh-you-should-use
Normal file
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
eval "$_z4h_opt"
|
||||
|
||||
local file=$Z4H_PACKAGE_DIR/zsh-you-should-use.plugin.zsh
|
||||
[[ -e $file ]] || return 0
|
||||
|
||||
local code
|
||||
code=$(<$file) || return
|
||||
|
||||
local orig='
|
||||
NONE="$(tput sgr0)"
|
||||
BOLD="$(tput bold)"
|
||||
RED="$(tput setaf 1)"
|
||||
YELLOW="$(tput setaf 3)"
|
||||
PURPLE="$(tput setaf 5)"
|
||||
'
|
||||
local sub="
|
||||
NONE=\$'\\e[0m'
|
||||
BOLD=\$'\\e[1m'
|
||||
RED=\$'\\e[31m'
|
||||
YELLOW=\$'\\e[33m'
|
||||
PURPLE=\$'\\e[35m'
|
||||
"
|
||||
print -r -- ${code/$orig/$sub} >$file
|
Loading…
Add table
Add a link
Reference in a new issue