Zend certified PHP/Magento developer

How do I convert .bash_profile to .zprofile

With OSX Catalina they want you to use zsh for the shell and I had a bash profile (that I “borrowed”) that I like. But I’m not a shell expert and I don’t know how to convert it. Below is the .bash_profile I would like to convert.

#!/bin/bash

export TERM=xterm-256color
export CLICOLOR=1
export LSCOLORS=Fafacxdxbxegedabagacad

GREEN=$(tput setaf 2);
YELLOW=$(tput setaf 3);
RESET=$(tput sgr0);

function get_branch {
 git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* (.*)/ (1)/'
}

function random_element {
 declare -a array=("$@")
 r=$((RANDOM % ${#array[@]}))
 printf "%sn" "${array[$r]}"
}

setEmoji () {
 EMOJI="$*"
 PS1="${YELLOW}w${GREEN}$(get_branch)${RESET} ${EMOJI}n$ ";
}

newRandomEmoji () {
  setEmoji "$(random_element ๐Ÿ˜… ๐Ÿ‘ฝ ๐Ÿ”ฅ ๐Ÿš€ ๐Ÿ‘ป โ›„ ๐Ÿ‘พ ๐Ÿ” ๐Ÿ˜„ ๐Ÿฐ ๐Ÿ‘ ๐Ÿ˜Ž ๐ŸŽ ๐Ÿค– ๐Ÿ˜‡ ๐Ÿ˜ผ ๐Ÿ’ช ๐Ÿฆ„ ๐Ÿฅ“ ๐ŸŒฎ ๐ŸŽ‰ ๐Ÿ’ฏ โš›๏ธ ๐Ÿ  ๐Ÿณ ๐Ÿฟ ๐Ÿฅณ ๐Ÿคฉ ๐Ÿคฏ ๐Ÿค  ๐Ÿ‘จโ€๐Ÿ’ป ๐Ÿฆธโ€ ๐Ÿงโ€ ๐Ÿงžโ€ ๐Ÿง™โ€ ๐Ÿ‘จโ€๐Ÿš€ ๐Ÿ‘จโ€๐Ÿ”ฌ ๐Ÿ•บ ๐Ÿฆ ๐Ÿถ ๐Ÿต ๐Ÿป ๐ŸฆŠ ๐Ÿ™ ๐ŸฆŽ ๐Ÿฆ– ๐Ÿฆ• ๐Ÿฆ ๐Ÿฆˆ ๐ŸŠ ๐Ÿฆ‚ ๐Ÿ ๐Ÿข ๐Ÿ˜ ๐Ÿ‰ ๐Ÿฆš โœจ โ˜„๏ธ โšก๏ธ ๐Ÿ’ฅ ๐Ÿ’ซ ๐Ÿงฌ ๐Ÿ”ฎ โš—๏ธ ๐ŸŽŠ ๐Ÿ”ญ โšช๏ธ ๐Ÿ”ฑ)"
}

newRandomEmoji

newRandomEmoji

alias jestify="PS1="๐Ÿƒn$ "";
alias cypressify="PS1="๐ŸŒ€n$ "";

# history size
HISTSIZE=5000
HISTFILESIZE=10000

# PATH ALTERATIONS
## Node
PATH="/usr/local/bin:$PATH:./node_modules/.bin";

# Custom bins
PATH="$PATH:$HOME/.bin";

CDPATH=.:$HOME:$HOME/code:$HOME/Desktop

alias ll="ls -la"
alias cls="clear"

alias pj="cd ~/Projects"

Namely I can do without the random emoji (it was just fun). But I want the color prompt. I liked having the branch listed in the prompt so I always knew if I was in a git repo and what branch was currently checked out.

I appreciate any help.