Created
April 25, 2017 17:14
-
-
Save igemnace/9ca9fa3eec473998535e33a5759b029c to your computer and use it in GitHub Desktop.
Open urxvt at a path chosen by rofi.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
rofi_path=$(find "$HOME" -type d -path '*/\.*' -prune -o -not -name '.*' -type d | rofi -dmenu) | |
[[ $rofi_path != "" ]] && exec urxvt -e zsh -c "cd $rofi_path; zsh -i" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment