aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/init.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/command/init.rs')
-rw-r--r--src/command/init.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/command/init.rs b/src/command/init.rs
index b6fbe4b3..5d3ffed2 100644
--- a/src/command/init.rs
+++ b/src/command/init.rs
@@ -6,6 +6,8 @@ pub enum Cmd {
Zsh,
#[structopt(about = "bash setup")]
Bash,
+ #[structopt(about = "fish setup")]
+ Fish,
}
fn init_zsh() {
@@ -18,11 +20,17 @@ fn init_bash() {
println!("{}", full);
}
+fn init_fish() {
+ let full = include_str!("../shell/atuin.fish");
+ println!("{}", full);
+}
+
impl Cmd {
pub fn run(&self) {
match self {
Self::Zsh => init_zsh(),
Self::Bash => init_bash(),
+ Self::Fish => init_fish(),
}
}
}