Created
October 16, 2024 23:23
-
-
Save joparara/dfcd6437f916c98f9b175cb75f75033f to your computer and use it in GitHub Desktop.
embellished ll command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ll will usually ls, but if you add any argument, it will run bat (fzf) (to view the file) | |
```bash | |
ll () { | |
if (( $# == 0 )); then | |
ls -alF | |
else | |
bat $(fzf) $1 | |
fi | |
} | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment