Advertisement
Nestor10

Git+Python+Direnv=Bae

Apr 23rd, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.32 KB | None | 0 0
  1. gitupdate(){ WD=$(pwd); cd /home/$USER/github; for D in */; do /bin/sh -c "cd $D && pwd && git pull; cd /home/$USER/github"; done; cd $WD; };
  2. function direnv_github_exec(){ direnv exec /home/$USER/github/$1/.direnv/py*/bin/ python -m $1; }
  3. twitter(){ direnv_github_exec rainbowstream; }
  4. reddit(){ direnv_github_exec rtv; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement