zsh-users / fizsh

Friendly Interactive ZSHell.
Other
301 stars 18 forks source link

How to add `ls alias` for `fizsh` ? #22

Open jiapei100 opened 1 year ago

jiapei100 commented 1 year ago

Happened to come across fizsh and would like to have a try... How can I add some ls alias for fizsh?

# some more ls aliases
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'

And, is it possible to source .bashrc FIRST before loading .fizsh ??

Cheers

guidovansteen commented 1 year ago

You could start your ~/.fizshrc file by sourcing another file, for instance like this:

source /path/to/.bashrc

However, fizsh is based on zsh (and not on bash). So, your /path/to/.bashrc should not contain zsh incompatible code.

I would therefore directly define my aliases in my ~/.fizshrc file.