Function: f-short

f-short is a function alias for abbreviate-file-name, defined in files.el.gz.

Signature

(f-short FILENAME)

Documentation

Return a version of FILENAME shortened using directory-abbrev-alist.

This also substitutes "~" for the user's home directory (unless the home directory is a root directory).

When this function is first called, it caches the user's home directory as a regexp in abbreviated-home-dir, and reuses it afterwards (so long as the home directory does not change; if you want to permanently change your home directory after having started Emacs, set abbreviated-home-dir to nil so it will be recalculated).

Aliases

viper-abbreviate-file-name (obsolete since 27.1) f-short f-abbrev