Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. ╭-ivan·dotfiles (master)
  2. ╰ဝ █
  3.  
  4. ╭-ivan·dotfiles (master)
  5. ╰ဝ curl localhost:3002/is_alive
  6. {"web_server_status":"success","db_status":"success"}╭-ivan·dotfiles (master)
  7. ╰ဝ █
  8.  
  9. build_prompt() {
  10. export PS1="$(ps1_head)...
  11. }
  12.  
  13. ps1_head() {
  14. if (( $(cursor_col) > 1 )); then
  15. printf 'n╭-'
  16. else
  17. printf '╭-'
  18. fi
  19. }
  20.  
  21. cursor_col() {
  22. local _row col
  23. IFS=';' read -s -dR -p $'33[6n' _row col
  24. echo "${col}"
  25. }
  26.  
  27. ╭-ivan·dotfiles (master)
  28. ╰ဝ curl localhost:3002/is_alive
  29. {"web_server_status":"success","db_status":"success"}
  30. ╭-ivan·dotfiles (master)
  31. ╰ဝ █
  32.  
  33. ╭-ivan·dotfiles (master)
  34. ╰ဝ git status
  35. On branch master
  36. Your branch is up-to-date with 'origin/master'.
  37.  
  38. lnothing to commit, working tree clean
  39. s╭-ivan·dotfiles (master)
  40. ╰ဝ ls
  41. myfile.txt
  42.  
  43. ╭-ivan·dotfiles (master)
  44. ╰ဝ git status
  45. On branch master
  46. Your branch is up-to-date with 'origin/master'.
  47.  
  48. lnothing to commit, working tree clean
  49. s╭-ivan·dotfiles (master)
  50. ╰ဝ s
  51. bash: s: command not found
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement