Skip to content

Commit

Permalink
Change colours of the fish prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
mocoso committed Apr 29, 2017
1 parent 15957e9 commit e4a5f00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions home/.config/fish/config.fish
@@ -0,0 +1,2 @@
set -g fish_color_cwd white
set -g fish_color_uneditable_cwd white
4 changes: 2 additions & 2 deletions home/.config/fish/functions/fish_prompt.fish
@@ -1,5 +1,5 @@
function fish_prompt --description 'Write out the prompt'
printf '%s%s%s:' (set_color cyan) (hostname|cut -d . -f 1) (set_color normal)
printf '%s%s%s:' (set_color purple) (hostname|cut -d . -f 1) (set_color normal)

# Write the process working directory
if test -w "."
Expand All @@ -9,7 +9,7 @@ function fish_prompt --description 'Write out the prompt'
end

if is_git_repo
printf '%s±%s%s' (set_color red) (set_color white) (__git_ps1)
printf '%s±%s%s' (set_color red) (set_color yellow) (__git_ps1)
end

if git_staged
Expand Down

0 comments on commit e4a5f00

Please sign in to comment.