1
Fork 0
mirror of https://github.com/Steffo99/config-fish.git synced 2024-10-16 06:17:34 +00:00

Another fix for the bug in the prompt

This commit is contained in:
Steffo 2021-10-04 00:17:44 +02:00
parent 85dc30dfbb
commit cb130473a8
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -39,8 +39,11 @@ function fish_prompt
set -g CURRENT_IP (who am i | awk '{print $5}')
if test -z "$CURRENT_IP"
# Experiment
set -g CURRENT_IP (who | grep "$USER" | awk '{print $5}')
set -g "CURRENT_IP" (who | grep "$USER" | awk '{print $5}')
end
if test -z "$CURRENT_IP"
set -g "CURRENT_IP" (who | grep "$SUDO_USER" | awk '{print $5}')
end
if test -z "$CURRENT_IP"