Update .zshrc

This commit is contained in:
Billy-George Price-Sprackland
2026-04-05 11:45:10 +01:00
committed by GitHub
parent 7de44bfbcb
commit 548df0eb50
+1 -18
View File
@@ -1,7 +1,7 @@
#
# .zshrc
#
# @author Jeff Geerling
# @author Billy-George Price-Sprackland
#
# Colors.
@@ -79,23 +79,6 @@ function gsync() {
# Tell homebrew to not autoupdate every single time I run it (just once a week).
export HOMEBREW_AUTO_UPDATE_SECS=604800
# Super useful Docker container oneshots.
# Usage: dockrun, or dockrun [centos7|fedora27|debian9|debian8|ubuntu1404|etc.]
# Run on arm64 if getting errors: `export DOCKER_DEFAULT_PLATFORM=linux/amd64`
dockrun() {
docker run -it geerlingguy/docker-"${1:-ubuntu1604}"-ansible /bin/bash
}
# Enter a running Docker container.
function denter() {
if [[ ! "$1" ]] ; then
echo "You must supply a container ID or name."
return 0
fi
docker exec -it $1 bash
return 0
}
# Delete a given line number in the known_hosts file.
knownrm() {