mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
move plugin into $ZSH/plugins/printc
This commit is contained in:
parent
59930902e1
commit
0a1acbb5d5
6 changed files with 362 additions and 0 deletions
21
plugins/printc/setup.sh
Executable file
21
plugins/printc/setup.sh
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
|
||||
ZSHENV_FILE=$HOME/.zshenv
|
||||
|
||||
write_to_zshenv() {
|
||||
{
|
||||
echo
|
||||
echo '# ---Auto generated by printc plugin---'
|
||||
echo 'fpath=($HOME/.oh-my-zsh/plugins/printc $fpath)'
|
||||
echo 'ZSH=$HOME/.oh-my-zsh'
|
||||
echo '# -------------------------------------'
|
||||
echo
|
||||
} >> "$ZSHENV_FILE"
|
||||
}
|
||||
|
||||
if [ -e "$ZSHENV_FILE" ]; then
|
||||
write_to_zshenv
|
||||
else
|
||||
touch "$HOME/.zshenv"
|
||||
write_to_zshenv
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue