From 8b2868af8f9f46be683878eb61c21d51d868657e Mon Sep 17 00:00:00 2001 From: John Mertz Date: Thu, 5 Oct 2023 18:34:34 +0000 Subject: [PATCH] .toolboxenv path name changed --- bash/bash_aliases | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bash/bash_aliases b/bash/bash_aliases index 2d0a7b3ae..a75a270bb 100644 --- a/bash/bash_aliases +++ b/bash/bash_aliases @@ -48,8 +48,8 @@ alias mpv="flatpak run io.mpv.Mpv" # Nixpkgs alias waybar="/home/jpm/.dotfiles/nix/bin/waybar" -# Detect if I'm in a toolbox -alias isdistrobox='[ -f "/run/.toolboxenv" ] && grep -oP "(?<=name=\")[^\";]+" /run/.containerenv' +# Detect if I'm in a distrobox, returns name of box, if applicable +alias isdistrobox='[ -f "/run/.containerenv" ] && grep -oP "(?<=name=\")[^\";]+" /run/.containerenv' # Flag that the directory was just changed (used with prompt) alias cd='export DIRCHANGED="1"; cd'