Skip to content

Commit

Permalink
Fix ps on docker
Browse files Browse the repository at this point in the history
  • Loading branch information
dhvcc committed Jul 2, 2024
1 parent 0b03363 commit 74c05b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .config/.aliasrc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ alias vim=nvim
dus() { du -sh $1/* | sort -hr | xargs -0 echo | sed -r 's/\S*\// /g'; }
alias lss="lsd --blocks size,name -l -S --size=short -F" # dus lsd variant

color_lsd=$(ps -p $(ps -p $$ -o ppid=) -o args= | grep nautilus 2>&1 > /dev/null && echo -n "never" || echo -n "always")
# FIXME color_lsd=$(ps -p $(ps -p $$ -o ppid=) -o args= | grep nautilus 2>&1 > /dev/null && echo -n "never" || echo -n "always")
color_lsd="always"
alias ls="lsd -A --group-dirs first --color $color_lsd" \
find="fd" \
grep="rg -i --color always"
Expand Down

0 comments on commit 74c05b0

Please sign in to comment.