Skip to content

Commit 471bbad

Browse files
WaffleLapkinrami3l
authored andcommitted
Update all rc fish scripts
1 parent 68355a5 commit 471bbad

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/cli/self_update/shell.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -233,16 +233,7 @@ impl UnixShell for Fish {
233233
}
234234

235235
fn update_rcs(&self) -> Vec<PathBuf> {
236-
if let Ok(home) = process().var("XDG_CONFIG_HOME") {
237-
let mut path = PathBuf::from(home);
238-
path.push("fish/config.d/rustup.fish");
239-
vec![path]
240-
} else if let Some(mut path) = utils::home_dir() {
241-
path.push(".config/fish/config.d/rustup.fish");
242-
vec![path]
243-
} else {
244-
Vec::new()
245-
}
236+
self.rcfiles()
246237
}
247238
}
248239

0 commit comments

Comments
 (0)