Skip to content

Instantly share code, notes, and snippets.

@igemnace
Created April 25, 2017 17:14
Show Gist options
  • Save igemnace/9ca9fa3eec473998535e33a5759b029c to your computer and use it in GitHub Desktop.
Save igemnace/9ca9fa3eec473998535e33a5759b029c to your computer and use it in GitHub Desktop.
Open urxvt at a path chosen by rofi.
#!/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