Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't add options to "cwd" #510

Open
Dan1jel opened this issue Dec 29, 2020 · 1 comment
Open

can't add options to "cwd" #510

Dan1jel opened this issue Dec 29, 2020 · 1 comment

Comments

@Dan1jel
Copy link

Dan1jel commented Dec 29, 2020

I must be stupid or something but i can't get "max_dir_size" to work.

My code look like this:

{
"segments": [
"ssh",
"cwd" {
max_dir_size:2
}
"git",
"hg",
"jobs",
"root"
]
}
}

My error is:

[powerline-bash] Config file (/data/data/com.termux/files/home/.config/powerline-shell/config.json) could not be decoded! Error: Expecting ',' delimiter: line 4 column 11 (char 39)

@minelminel
Copy link

Setting aside the issue that your configuration as shown is invalid JSON, the configuration options for individual segments belong outside of the segments property, like such

{
  "segments": [
    "ssh",
    "cwd",
    "git",
    "hg",
    "jobs",
    "root"
  ],
  "cwd": {
    "max_dir_size": 2
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants