update fish prompt
This commit is contained in:
parent
68049b7893
commit
e1f8d9d466
1 changed files with 5 additions and 1 deletions
|
|
@ -25,6 +25,8 @@
|
||||||
set -g fish_color_host 89b4fa
|
set -g fish_color_host 89b4fa
|
||||||
else if test (hostname) = "vm-aarch64"
|
else if test (hostname) = "vm-aarch64"
|
||||||
set -g fish_color_host a6e3a1
|
set -g fish_color_host a6e3a1
|
||||||
|
else if test (uname) = "Darwin"
|
||||||
|
set -g fish_color_host f9e2af
|
||||||
end
|
end
|
||||||
|
|
||||||
set -l user_host (set_color $fish_color_user)"$USER"(set_color normal)"@"(set_color $fish_color_host)(prompt_hostname)(set_color normal)
|
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)
|
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 = {
|
nix-shell = {
|
||||||
description = "Wrapper for nix-shell that runs fish by default";
|
description = "Wrapper for nix-shell that runs fish by default";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue