Skip to content

Instantly share code, notes, and snippets.

@tesu
Created June 16, 2019 16:31
Show Gist options
  • Save tesu/0458e0ea89ceb7d590c35d2b64830a34 to your computer and use it in GitHub Desktop.
Save tesu/0458e0ea89ceb7d590c35d2b64830a34 to your computer and use it in GitHub Desktop.
exactly what it says on the tin
#!/usr/bin/env zsh
urxvtc -e zsh -c 'LS=""; while [[ 1 ]]; do DIR=$(pwdx '$PPID' |& grep -o "/.*"); if [[ ! $DIR ]]; then break; fi; if [[ $LS != $DIR\n$(ls $DIR) ]]; then LS=$DIR\n$(ls $DIR); clear; echo $DIR; ls $DIR --color=auto -a; fi; done' &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment