update some shell defaults

This commit is contained in:
Penelope Gwen 2026-04-30 09:23:15 -07:00
parent c5788e2213
commit 3d945896c3
2 changed files with 7 additions and 2 deletions

View file

@ -33,8 +33,8 @@ alias p="ps aux |grep "
alias o="open " alias o="open "
#find large files #find large files
#alias find_largest_files="du -h -x -s -- * | sort -r -h | head -20" #alias find_largest_files="du -h -x -s -- * | sort -r -h | head -20"
alias nano="hx" #alias nano="hx"
alias nvim="hx" #alias nvim="hx"
sort_filesizes() { sort_filesizes() {
[ -z ${1} ] && local dir="$(pwd)" || local dir="${1}" [ -z ${1} ] && local dir="$(pwd)" || local dir="${1}"
du -ah --max-depth=1 "$(realpath ${dir})" | sort --human-numeric-sort du -ah --max-depth=1 "$(realpath ${dir})" | sort --human-numeric-sort

View file

@ -9,6 +9,7 @@ format = """[░▒▓](fg:purple bg:transparent)\
$time\ $time\
${custom.ssh}\ ${custom.ssh}\
$sudo\ $sudo\
$container\
$username\ $username\
${custom.hostname}\ ${custom.hostname}\
$directory\ $directory\
@ -20,6 +21,10 @@ $character"""
#$git_status\ #$git_status\
[container]
style = "bold bg:purple fg:red"
format = '[$symbol \[$name\]]($style) '
[username] [username]
style_user = 'bg:purple fg:black' style_user = 'bg:purple fg:black'
#style_root = 'bg:blue fg:black' #style_root = 'bg:blue fg:black'