Skip to content

How do you change the "home" directory from "~" to 🏠 #1874

Answered by mickimnet
trajano asked this question in Q&A
Discussion options

You must be logged in to vote

You can take a look at my configuration files, where I have done that extensively, and in order to achieve what you have asked for, you need to add the following to your starship.toml config file:

[directory.substitutions]
"~/Documents" = "📃"
"~/Desktop" = "💻"
"~" = "🏠"

I'm not sure if it is possible to substitute "/*", as I'm replacing the slash with a powerline symbol (see above).

Take care
Mick

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by trajano
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants