View difference between Paste ID: c2MEqNX5 and QXySvYX8
SHOW: | | - or go back to the newest paste.
1
/data/data/com.termux/files/home/.config/fish
2
3
or
4
5
nano ~/.config/fish/config.fish
6
7
8
save the following in config.fish file 
9
10
11
if status is-interactive 
12-
if status is-interactive
12+
# Commands to run in interactive sessions can go here 
13-
    # Commands to run in interactive sessions can go here
13+
end 
14
15
 function fish_prompt 
16-
function fish_prompt
16+
17
 
18-
  # interactive user name @ host name, date>
18+
19
# interactive user name @ host name, date> 
20-
  # Print "$(date)" to magenta color
20+
21
 
22-
  echo -e "\e[35m$(date)\e[0m"
22+
23
# Print "$(date)" to magenta color 
24-
  echo (pwd)
24+
25
 
26-
  # Print "Jack's gone fishing..." in blue  color
26+
27
echo -e "\e[35m$(date)\e[0m" 
28-
  echo -e " \e[34mJack's gone fishing...
28+
29-
[~]:#\e[0m "
29+
 echo (pwd) 
30
31
 
32
33
# Print "Th3 GardeN oF D34D₹⁰S3S ♠️🌹....." in Red color 
34
35
 
36
37
echo -e " \e[34mTh3 GardeN oF D34D₹⁰S3S ♠️🌹... 
38
39
[~]:#\e[0m " 
40
41
 
42
43
end
44
45
46
echo $SHELL
47
48
check your current home shell
49
50
51
chsh bash
52
53
Changing the login shell
54
Enter the new value, or press ENTER for the default
55
        Login Shell [bash]:
56
57
58
color change 
59
60
 in fish shell, run 
61
62
63
# Set normal text color to white 
64
65
 
66
67
set fish_color_normal white 
68
69
 
70
71
 
72
73
 
74
75
# Set command color to green 
76
77
 
78
79
set fish_color_command green 
80
81
 
82
83
 
84
85
 
86
87
# Set keyword color to cyan 
88
89
 
90
91
set fish_color_keyword cyan 
92
93
 
94
95
 
96
97
 
98
99
# Set error color to red and bold 
100
101
 
102
103
set fish_color_error red --bold