Requires Rust.
git clone [email protected]:FilipHarald/rstrt.git
cd rstrt
cargo build --release
cp ./target/release/rainbow-street $HOME/bin/rstrt
($HOME/bin
needs to be in your PATH)
Use this in your .bashrc
.
promptFunc() {
if [[ -x $(realpath "$HOME/bin/rstrt") ]]
then
WD=`pwd | $HOME/bin/rstrt --ps1-escape`
COLORIZED_DIR=`echo "${WD}" | awk -F/ '{print $NF}'`
PS1="\`echo -e \"\[\a\]\[\033[01;32m\]\h\[\033[01;34m\] ${COLORIZED_DIR} \$ \"\`"
else
PS1='\[\a\]\[\033[01;32m\]\h\[\033[01;34m\] \W \$ \[\033[00m\]'
fi
}
PROMPT_COMMAND="promptFunc"
find ~/* | rstrt
find ~/* | rstrt | fzf --ansi
let cwd = getcwd()
let $FZF_DEFAULT_COMMAND = 'find '.cwd.' -type f | rstrt'
let $FZF_DEFAULT_OPTS = '--ansi'
⚠ DEPRECATED ⚠
[rstrt.nvim](https://github.com/FilipHarald/rstrt.nvim)