Commit 6431a6d5 authored by Jørn Åne's avatar Jørn Åne Committed by Jørn Åne

Make prompts show whole hostname.

parent 0c1f6aab
......@@ -41,4 +41,4 @@ if [ "$PS1" ]; then
b_prompt='$ '
fi
fi
PS1="\n${c_reset}${c_user}\u${c_reset}@${c_host}\h${c_reset}:${c_path}\w${c_reset}\n${b_prompt}"
PS1="\n${c_reset}${c_user}\u${c_reset}@${c_host}\H${c_reset}:${c_path}\w${c_reset}\n${b_prompt}"
function fish_prompt
echo
set_color normal
set_color --bold
echo -ns "$USER"
set_color normal
echo -ns '@' (hostname -f) ':'
set_color --bold --background blue white
echo -ns (pwd)
set_color normal
echo
echo -ns "> "
function fish_prompt -d "Write out the prompt"
printf '\n%s%s%s%s@%s:%s%s%s\n> ' (set_color normal) (set_color --bold) (whoami) (set_color normal) (hostname) (set_color --bold --background blue white) (prompt_pwd) (set_color normal)
end
export LC_ALL=C
set fish_color_param normal
set fish_color_error normal
set fish_color_command normal\x1e\x2d\x2dbold
......@@ -49,5 +49,5 @@ if ($?prompt) then
set c_path="37;44"
set b_prompt='%% '
endif
set prompt="\n%B%n%b@%m:%B%{\033[${c_path}m%}%~%b\n${b_prompt}"
set prompt="\n%B%n%b@%M:%B%{\033[${c_path}m%}%~%b\n${b_prompt}"
endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment