diff --git a/sh/.config/sh/alias b/sh/.config/sh/alias index b67408e..c71d8f4 100644 --- a/sh/.config/sh/alias +++ b/sh/.config/sh/alias @@ -119,3 +119,8 @@ elif exist ipython; then elif exist python; then alias py=python fi + +# distrobox +if exist distrobox; then + alias db=distrobox +fi diff --git a/terminal/.config/zsh/.zshrc b/terminal/.config/zsh/.zshrc index d403f19..4efb1d8 100644 --- a/terminal/.config/zsh/.zshrc +++ b/terminal/.config/zsh/.zshrc @@ -66,6 +66,10 @@ promptinit prompt_newline='%666v' # show git stash status as a ≡ zstyle :prompt:pure:git:stash show yes +# show hostname if we are in a distrobox environment +if [ -n "$DISTROBOX_ENTER_PATH" ] && [ -f /run/.containerenv ]; then + local container=lxc +fi prompt pure # shellcheck source=alias