34 lines
770 B
Plaintext
34 lines
770 B
Plaintext
# Prompt shortcodes
|
|
NEWLINE=$'\n'
|
|
ARROW=$'\UE0B0'
|
|
|
|
# Required for showing symbols
|
|
setopt prompt_subst
|
|
|
|
# Set background and foreground for first element
|
|
PROMPT='%K{214}%F{black}'
|
|
# Print date and time
|
|
PROMPT+='${ARROW} %D %T '
|
|
# Close first element
|
|
PROMPT+='%f%k'
|
|
# Set background for second element
|
|
PROMPT+='%K{52}'
|
|
# Print next arrow
|
|
PROMPT+='%F{214}${ARROW}%f'
|
|
# Print current and parent directory
|
|
PROMPT+=' %2d '
|
|
# Close second element
|
|
PROMPT+='%k%K{black}%F{52}${ARROW}%f%k'
|
|
# Move to new line
|
|
PROMPT+='${NEWLINE}'
|
|
# Start second line
|
|
PROMPT+=' > '
|
|
|
|
# Homebrew
|
|
export PATH="/usr/local/sbin:$PATH"
|
|
|
|
# Aliases
|
|
alias copy='rsync -ax'
|
|
alias copydir='rsync -rax'
|
|
alias ytaudio='noglob yt-dlp -x --audio-format mp3'
|
|
alias ytdl='noglob yt-dlp --write-sub --write-auto-sub' |