You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I currently use freshrc and am converting to dotter.
Probably a simple question, but I haven't had much luck finding an answer. Is there a way to have a hash/dictionary in a template?
I currently have this file which has aliases stored as a hash in ruby erb, which then generates one version for zsh (which uses aliases) and one version for fish (which uses abbr)
I'm wondering if there's a way in a template to do something similar to this pseudo-code.
aliases = {
git: {
g: 'git',
gs: 'git status'
},
navigation: {
bp: 'bat --plain',
rmf: 'rm -rf',
md: 'mkdir -p'
}
}
for set in aliases {
for alias, command in set {
if (abbr_language == true)
"abbr {alias} {command}"
else
"alias {alias} {command}"
\if
}
}
The text was updated successfully, but these errors were encountered:
Environment
The question
I currently use freshrc and am converting to dotter.
Probably a simple question, but I haven't had much luck finding an answer. Is there a way to have a hash/dictionary in a template?
I currently have this file which has aliases stored as a hash in ruby erb, which then generates one version for zsh (which uses aliases) and one version for fish (which uses abbr)
I'm wondering if there's a way in a template to do something similar to this pseudo-code.
The text was updated successfully, but these errors were encountered: