From d607c55a189ce0c85f6fd14e2e73a347ef00afc0 Mon Sep 17 00:00:00 2001 From: _N0x Date: Sat, 29 Jan 2022 19:09:49 +0100 Subject: [PATCH] Added some more information to the fish theming and some more commands --- fish/.config/fish/config.fish | 8 ++++++++ fish/.config/fish/functions/fish_prompt.fish | 8 +++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index 43e5270..f7ce239 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -17,3 +17,11 @@ end function cnas curlftpfs 10.0.0.250 ~/NAS -o ssl,no_verify_peer,no_verify_hostname,uid=1000,gid=1000,umask=022 end + +function l + command ls -lah --color=auto $argv +end + +function ds + command du -sch * | sort -rh +end diff --git a/fish/.config/fish/functions/fish_prompt.fish b/fish/.config/fish/functions/fish_prompt.fish index 832c4c7..3e7ccc7 100644 --- a/fish/.config/fish/functions/fish_prompt.fish +++ b/fish/.config/fish/functions/fish_prompt.fish @@ -50,18 +50,20 @@ end function fish_prompt set -l last_status $status + # username and hostname _print_in_color "┏["$USER"@"(prompt_hostname)"]" blue + # current working dir _print_in_color " "$PWD $fish_color_cwd -# "%s%s@%s %s%s%s"$USER(prompt_hostname)(set_color $fish_color_cwd)$PWD blue -# set_color normal - __fish_git_prompt " (%s)" + # beginning of new line _print_in_color "\r\n┗" blue + # time information _print_in_color " "(date "+%H:%M:%S") green + # little error that indicates the status of the previous command _print_in_color " ❯ " (_prompt_color_for_status $last_status) end