Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 415 Bytes

README.md

File metadata and controls

18 lines (15 loc) · 415 Bytes

A basic prompt written in rust

RUSTFLAGS="-C target-cpu=native" cargo build --release
if [ -f "$HOME"/projects/powerline-rust/target/release/powerline-rust ]; then
  function _update_ps1() {
    eval $("$HOME"/projects/powerline-rust/target/release/powerline-rust $?)
  }
  if [ "$TERM" != "linux" ]; then
    PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
  fi
fi

screenshot