Skip to content
πŸ“‚ Human-friendly directory listings in your terminal
Python HTML Erlang Shell JavaScript CoffeeScript Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
files
tmp
.gitignore
README.md
index.html
install.sh
lsemoji.py
test.py

README.md

lsemoji

Human-friendly directory listings in your terminal. Example usage:

~/Documents/git/lsemoji/files> lsemoji .
πŸ“‚  dir
πŸ“  empty
πŸ“¦  App.app
🍎  apple.scpt
πŸ“¦  apple.scptd
πŸ“¦  archive.zip
🎡  audio.m4a
🎡  audio.wav
πŸ“…  calendar.ics
πŸ’¬  chat.ichat
πŸ‘€  contact.vcf
πŸ“„  document.pdf
πŸ“«  email.eml
πŸŽ‘  icon.ico
πŸŽ‘  image.png
πŸŽ‘  image.svg
πŸŽ‘  image.tif
πŸ“ƒ  javascript.js
πŸ”—  link.webloc
πŸ“  map.gpx
πŸ“  markdown.md
πŸ“°  news.rss
🌏  page.htm
🌏  page.html
🌍  page.webarchive
🎨  styles.css
🎨  styles.scss
πŸ“„  text.txt
🎬  video.mpeg
πŸ“  word.doc
πŸ“  word.docx

View the man for more info.

Usage

> lsemoji [path ...]

Use the --help option for an explanation of all options/arguments.

Install

curl -fsSl https://raw.githubusercontent.com/davidfmiller/lsemoji/master/install.sh | sh
export PATH="$PATH:~/bin"

You might want to create an alias for it, too. For bash do the following in your .profile:

function __emoji () { python ~/bin/lsemoji "$@"; }
alias l="__emoji"

Python module

lsemoji is also built to be a reusable Python module:

> python
...
>>> import lsemoji as ls
>>> print ls.emoji('/')
πŸ’»
Something went wrong with that request. Please try again.