Guest User

Untitled

a guest
Jun 25th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. function subp() {
  2. subl_root=~/sublime-project
  3. ext=sublime-project
  4.  
  5. project_name=$(ls $subl_root | grep .$ext | cut -d. -f1 | peco)
  6. if [[ -n "$project_name" ]]; then
  7. subl "$subl_root/$project_name.$ext"
  8. fi
  9. }
Add Comment
Please, Sign In to add comment