update fish prompt
This commit is contained in:
parent
eaa38c00ee
commit
3d8e938960
1 changed files with 5 additions and 1 deletions
|
|
@ -25,6 +25,8 @@
|
|||
set -g fish_color_host 89b4fa
|
||||
else if test (hostname) = "vm-aarch64"
|
||||
set -g fish_color_host a6e3a1
|
||||
else if test (uname) = "Darwin"
|
||||
set -g fish_color_host f9e2af
|
||||
end
|
||||
|
||||
set -l user_host (set_color $fish_color_user)"$USER"(set_color normal)"@"(set_color $fish_color_host)(prompt_hostname)(set_color normal)
|
||||
|
|
@ -33,8 +35,10 @@
|
|||
|
||||
set -l git_info (fish_git_prompt)
|
||||
|
||||
echo -n -s "$user_host" " " "$nix_shell_info" "$cwd" "$git_info" "> "
|
||||
echo -s "$user_host" " " "$cwd" "$git_info $nix_shell_info"
|
||||
echo -n -s "> "
|
||||
'';
|
||||
# echo -n -s "$user_host" " " "$nix_shell_info" "$cwd" "$git_info" "> "
|
||||
};
|
||||
nix-shell = {
|
||||
description = "Wrapper for nix-shell that runs fish by default";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue