Merge branch 'master' of github.com:AbleTheAbove/rash
This commit is contained in:
commit
bb66c1c443
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue