RC File

When cicada shell is invoked as an interactive login shell, or with the --login/-l option, it will reads and executes commands from first existing file of below list:

Hint: In non-login shell mode, you can apply RC file with source: $ source <path-to-rc-file>.

Here is a sample RC file:

# customize my prompt on Mac
export PROMPT="${GITBR}${COLOR_STATUS} $CWD${RESET}$ "

# handle some envs
export RUST_BACKTRACE='full'
export COPYFILE_DISABLE=1
export PATH="/usr/local/bin:$PATH"

# define aliases
alias ls="ls -G"
alias ll="ls -lh"
alias foo='echo foo bar | wc'

# define functions
function foo-bar() {
    echo foobar
}

# run regular commands
echo "cicada started at `date`" >> /tmp/some-random.log
touch /tmp/cicada-started

# include another rc file
source ~/.cicadarc_local