Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #!/usr/bin/env expect
  2. trap {
  3. set rows [stty rows]
  4. set cols [stty columns]
  5. stty rows $rows columns $cols < $spawn_out(slave,name)
  6. } WINCH
  7.  
  8.  
  9. log_user 0
  10.  
  11. spawn -noecho /bin/zsh -d -f
  12. stty -echo
  13. #send "source ./bin/activate\r"
  14. send "export PS1='*| '\r"
  15. send "bindkey -e\r"
  16.  
  17. send {export PATH="/home/rahul.gopinath/.pyenv/bin:$PATH"}
  18. send "\r"
  19. send {eval "$(pyenv init -)"}
  20. send "\r"
  21. send {eval "$(pyenv virtualenv-init -)"}
  22. send "\r"
  23. interact
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement