initial commit
This commit is contained in:
commit
ddd861496e
16 changed files with 361 additions and 0 deletions
24
users/mara/config/fish.nix
Normal file
24
users/mara/config/fish.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
|
||||
interactiveShellInit = ''
|
||||
set fish_greeting
|
||||
'';
|
||||
|
||||
functions = {
|
||||
fish_prompt.body = ''
|
||||
printf '%s %s > ' (set_color purple)(whoami)@(prompt_hostname) (set_color blue)(prompt_pwd)(set_color normal)
|
||||
'';
|
||||
|
||||
fish_right_prompt.body = ''
|
||||
set stat $status
|
||||
set -g __fish_git_prompt_showupstream verbose
|
||||
set -g __fish_git_prompt_showcolorhints 1
|
||||
printf '%s %s' (fish_vcs_prompt) [(set_color red)$stat(set_color normal)]
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue