message to set EDITOR too
This commit is contained in:
parent
438835862f
commit
ae702b76cf
@ -9,7 +9,8 @@ fn check() -> Result<()> {
|
|||||||
let data_home = std::env::var("XDG_DATA_HOME").unwrap_or("".to_owned());
|
let data_home = std::env::var("XDG_DATA_HOME").unwrap_or("".to_owned());
|
||||||
if editor.is_empty() || data_home.is_empty() {
|
if editor.is_empty() || data_home.is_empty() {
|
||||||
Err(anyhow!(
|
Err(anyhow!(
|
||||||
"Please make sure variables EDITOR and XDG_DATA_HOME are set.\n\n\texport XDG_DATA_HOME=\"$HOME/.local/share\""
|
"Please make sure variables EDITOR and XDG_DATA_HOME are set.\n\nExample:\n\texport\
|
||||||
|
XDG_DATA_HOME=$HOME/.local/share\n\texport EDITOR=/usr/bin/vim"
|
||||||
))
|
))
|
||||||
} else {
|
} else {
|
||||||
Ok(())
|
Ok(())
|
||||||
|
Loading…
Reference in New Issue
Block a user