Advertisement
Jackspade9624

fish shell mods

Mar 7th, 2025 (edited)
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. if status is-interactive
  2. # Commands to run in interactive sessions can go here
  3. end
  4.  
  5. function fish_prompt
  6.  
  7. # interactive user name @ host name, date>
  8.  
  9. # Print "$(date)" to magenta color
  10.  
  11. echo -e "\e[35m$(date)\e[0m"
  12.  
  13. # Print "(pwd)" to yellow color
  14.  
  15. echo -e "\e[33m$(pwd)\e[0m"
  16.  
  17. # Print "Jack's gone fishing..." in blue color
  18.  
  19. # Print ":#" in green color
  20.  
  21. # Print "~" in green color
  22.  
  23. echo -e " \e[34mJack's gone fishing...
  24. [\e[32m~\e[0m\e[34m]\e[32m:#\e[0m "
  25.  
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement