Forcibly use it in Python2 system.
curl -kL https://bootstrap.pypa.io/get-pip.py | python
pip install regalias
#Beware of updates for Python2
sed -i -E "s/ allow_abbrev=False\) # yapf: disable/ \)/" /usr/lib/python2.7/site-packages/regalias/__main__.py
Changed in version 3.5: The allow_abbrev argument was added.
Since it is not 2.7, it works by deleting it. As a side effect of forcibly moving, it is a pity that the return value remains a Unicode character string at the time of fixed generation of a synonym that passed an argument (name).
function fish_right_prompt
if [ $status -eq 0 ]
set_color magenta
echo "(゚*) "
else
set_color blue
echo "(=ω=.) "
end
if not set -q __fish_prompt_regalias
#If you don't make it global, it will change every time
set -g __fish_prompt_regalias (regalias)
end
set_color cyan
echo "$__fish_prompt_regalias"
set_color yellow
echo -n $USER
set_color normal
echo -n '@'
set_color red
hostname
end
I've been playing with the right prompt recently, but I'm not sure what to put in.
Even for identification when it is fully opened with play elements.
Recommended Posts