mirror of
https://github.com/pnx/dotfiles
synced 2026-06-18 12:00:02 +02:00
fixing fish
This commit is contained in:
parent
7f50f1867c
commit
e48368766f
2 changed files with 11 additions and 2 deletions
|
|
@ -3,9 +3,16 @@ if status is-interactive
|
||||||
set -x GPG_TTY (tty)
|
set -x GPG_TTY (tty)
|
||||||
end
|
end
|
||||||
|
|
||||||
set PATH $HOME/bin $HOME/.local/bin (go env GOPATH)/bin $PATH
|
|
||||||
set -g fish_greeting
|
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
|
# Colors
|
||||||
set fish_color_user normal
|
set fish_color_user normal
|
||||||
set fish_color_host blue
|
set fish_color_host blue
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,8 @@ function prompt_login --description 'display user name for the prompt'
|
||||||
# If we're running via SSH, change the host color.
|
# If we're running via SSH, change the host color.
|
||||||
set -l color_host $fish_color_host
|
set -l color_host $fish_color_host
|
||||||
if set -q SSH_TTY; and set -q fish_color_host_remote
|
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
|
end
|
||||||
|
|
||||||
|
echo -n -s (set_color $fish_color_user) "$USER" (set_color normal) / (set_color $color_host) (prompt_hostname) (set_color normal)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue