1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

fixing fish

This commit is contained in:
Henrik Hautakoski 2024-06-23 17:23:40 +02:00
parent 7f50f1867c
commit e48368766f
2 changed files with 11 additions and 2 deletions

View file

@ -3,9 +3,16 @@ if status is-interactive
set -x GPG_TTY (tty)
end
set PATH $HOME/bin $HOME/.local/bin (go env GOPATH)/bin $PATH
set -g fish_greeting
# Path stuff
if command -q go
fish_add_path (go env GOPATH)/bin
end
fish_add_path $HOME/bin
fish_add_path $HOME/.local/bin
# Colors
set fish_color_user normal
set fish_color_host blue

View file

@ -21,6 +21,8 @@ function prompt_login --description 'display user name for the prompt'
# If we're running via SSH, change the host color.
set -l color_host $fish_color_host
if set -q SSH_TTY; and set -q fish_color_host_remote
echo -n -s (set_color $fish_color_user) "$USER" (set_color normal) / (set_color $color_host) (prompt_hostname) (set_color normal)
set color_host $fish_color_host_remote
end
echo -n -s (set_color $fish_color_user) "$USER" (set_color normal) / (set_color $color_host) (prompt_hostname) (set_color normal)
end