DEV Community

Discussion on: Oh My Zsh + PowerLevel10k = 😎 terminal

 
abdfnx profile image
abdfn • Edited

Nice, I tried exa and it's very powerful

Thread Thread
 
ombratteng profile image
Ole-Martin Bratteng

I've got this in my .zshrc file

if [ -x "$(command -v exa)" ]; then
    alias ls="exa"
    alias la="exa --long --all --group"
fi
Enter fullscreen mode Exit fullscreen mode
Thread Thread
 
abdfnx profile image
abdfn

This is better

Thread Thread
 
ombratteng profile image
Ole-Martin Bratteng

Yeah, I wrap all my aliases in if clauses, that way I can share my dotfiles across systems, and not worry if e.g. exa isn't installed on that particular machine, I still have the original ls

Thread Thread
 
abdfnx profile image
abdfn

what an idea, you've an amazing ðŸ§