This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enable git autocompletions | |
autoload -Uz compinit && compinit | |
# Change terminal prompt to "$directory ($branch)" | |
autoload -Uz vcs_info | |
zstyle ':vcs_info:git:*' formats ' (%b)' | |
precmd () { vcs_info } | |
setopt prompt_subst | |
PS1='%F{yellow}%1~%f%F{cyan}$vcs_info_msg_0_%f $ ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NOTE: This file must be in the `src` folder, i.e. `src/repl.ts`. | |
/** | |
* Playground script that can be used in a REPL fashion. | |
* Just `npm run repl` and Payload will run in a minimal, local API mode. | |
* @see https://payloadcms.com/docs/local-api/overview#local-api | |
*/ | |
import payload from "payload"; | |
import dotenv from "dotenv"; |
OlderNewer