Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /data/data/com.termux/files/home/.config/fish
- or
- nano ~/.config/fish/config.fish
- save the following in config.fish file
- if status is-interactive
- # Commands to run in interactive sessions can go here
- end
- function fish_prompt
- # interactive user name @ host name, date>
- # Print "$(date)" to magenta color
- echo -e "\e[35m$(date)\e[0m"
- echo (pwd)
- # Print "Jack's gone fishing..." in blue color
- echo -e " \e[34mJack's gone fishing...
- [~]:#\e[0m "
- end
- echo $SHELL
- check your current home shell
- chsh bash
- Changing the login shell
- Enter the new value, or press ENTER for the default
- Login Shell [bash]:
- color change
- in fish shell, run
- # Set normal text color to white
- set fish_color_normal white
- # Set command color to green
- set fish_color_command green
- # Set keyword color to cyan
- set fish_color_keyword cyan
- # Set error color to red and bold
- set fish_color_error red --bold
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement