diff --git a/.aliases b/.aliases index 8b7da75..cd1bf17 100755 --- a/.aliases +++ b/.aliases @@ -11,6 +11,8 @@ alias camshot='fswebcam -r 640x480 --jpeg 90 -F 3 -D 1 --no-banner' alias dps='docker ps -a' alias di='docker images' +alias dv='docker volume ' +alias dls='docker volume ls' alias dip="docker inspect -f '{{ .NetworkSettings.IPAddress }}'" # call with or ID alias dih="docker inspect -f '{{ .Config.Hostname }}'" # call with or ID alias dstats="docker stats "'$(sudo docker ps -aq)' # shows stats thingy for all containers diff --git a/.bashrc b/.bashrc index 5efc7be..0e7b6b2 100755 --- a/.bashrc +++ b/.bashrc @@ -13,12 +13,14 @@ esac HISTCONTROL=ignoreboth # allow docker to use X -xhost +local:root +if [ -f /usr/bin/xhost ]; then + xhost +local:root +fi # Load the shell dotfiles, and then some: # * ~/.path can be used to extend `$PATH`. # * ~/.extra can be used for other settings you don’t want to commit. -for file in ~/.{aliases,bash_prompt,functions,path,extra,exports,dockerfunc}; do +for file in ~/.{aliases,bash_prompt,functions,path,dockerfunc,extra,exports}; do [[ -r "$file" ]] && [[ -f "$file" ]] && source "$file" done unset file