Added some more information to the fish theming and some more commands

This commit is contained in:
_N0x 2022-01-29 19:09:49 +01:00
parent d0370eccc9
commit d607c55a18
2 changed files with 13 additions and 3 deletions

View File

@ -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

View File

@ -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