Advertisement
Jackspade9624

auto correct fish shell termux

Mar 4th, 2025 (edited)
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. Install Auto Correct in Termux | Termux Fish Shell 🖤🥀
  2.  
  3. INSTALL -->🍁
  4.  
  5. pkg install fish neofetch -y && cd && echo "if [ -x /data/data/com.termux/files/usr/libexec/termux/command-not-found ]; then
  6. command_not_found_handle() {
  7. /data/data/com.termux/files/usr/libexec/termux/command-not-found "$1"
  8. }
  9. fi
  10.  
  11. PS1='$'
  12. clear && neofetch && fish" > /data/data/com.termux/files/usr/etc/bash.bashrc && exit
  13.  
  14. UNINSTALL -->🍁
  15.  
  16. pkg uninstall fish -y && echo "if [ -x /data/data/com.termux/files/usr/libexec/termux/command-not-found ]; then
  17. command_not_found_handle() {
  18. /data/data/com.termux/files/usr/libexec/termux/command-not-found "$1"
  19. }
  20. fi
  21. PS1='\$ '" > /data/data/com.termux/files/usr/etc/bash.bashrc && exit
  22.  
  23.  
  24. customize fish shell
  25.  
  26. function fish_prompt
  27.  
  28. # interactive user name @ host name, date>
  29.  
  30. echo (date '+%Y-%m-%d %H:%M:%S')
  31.  
  32. echo (pwd)
  33.  
  34. echo " jack's gone fishin
  35. [~]:# "
  36.  
  37. end
  38.  
  39. color change
  40.  
  41. # Set normal text color to white
  42.  
  43. set fish_color_normal white
  44.  
  45.  
  46.  
  47. # Set command color to green
  48.  
  49. set fish_color_command green
  50.  
  51.  
  52.  
  53. # Set keyword color to cyan
  54.  
  55. set fish_color_keyword cyan
  56.  
  57.  
  58.  
  59. # Set error color to red and bold
  60.  
  61. set fish_color_error red --bold
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement