Merge branch 'master' of github.com:AbleTheAbove/rash

This commit is contained in:
Able 2021-11-06 22:32:06 -05:00
commit bb66c1c443

View file

@ -7,8 +7,10 @@ use std::{
const VERSION: &str = env!("CARGO_PKG_VERSION"); const VERSION: &str = env!("CARGO_PKG_VERSION");
fn main() { fn main() {
loop { loop {
print!("~> "); // use the `>` character as the prompt
// need to explicitly flush this to ensure it prints before read_line // need to explicitly flush this to ensure it prints before read_line
print!("{} ~> ", std::env::current_dir().unwrap().display());
stdout().flush().unwrap(); stdout().flush().unwrap();
let mut input = String::new(); let mut input = String::new();