Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
401 B

4 years ago
  1. #!/bin/sh
  2. DMENU='dmenu -z 1900 -x 10 -y 10 -i'
  3. blacklist="powerlevel10k|secret|gitignore|log|patches|config/surf|BetterDiscord|\.ccls-cache"
  4. files="$(git --git-dir="$HOME/.dotfiles.git/" --work-tree="$HOME" ls-files)"
  5. items=$(echo "$files" | grep -Ev $blacklist)
  6. selection=$(printf "%s" "$items" | $DMENU)
  7. if [ ! "$selection" = "" ]; then
  8. st -c vim -n vim -e "$EDITOR" "$HOME/$selection"
  9. fi