RC File

When cicada shell is invoked as an interactive login shell, or with the --login/-l option, it will run commands from the first existing file listed below:

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

# handle some envs
export RUST_BACKTRACE='full'
export PATH="$PATH:$HOME/.cargo/bin"
export PATH="$PATH:/Library/PostgreSQL/10/bin"

# 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