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

pull/3/head
Able 2021-11-06 22:32:06 -05:00
commit 4d7a357898
1 changed files with 3 additions and 1 deletions

View File

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