Update .zshrc
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# .zshrc
|
# .zshrc
|
||||||
#
|
#
|
||||||
# @author Jeff Geerling
|
# @author Billy-George Price-Sprackland
|
||||||
#
|
#
|
||||||
|
|
||||||
# Colors.
|
# Colors.
|
||||||
@@ -79,23 +79,6 @@ function gsync() {
|
|||||||
# Tell homebrew to not autoupdate every single time I run it (just once a week).
|
# Tell homebrew to not autoupdate every single time I run it (just once a week).
|
||||||
export HOMEBREW_AUTO_UPDATE_SECS=604800
|
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.
|
# Delete a given line number in the known_hosts file.
|
||||||
knownrm() {
|
knownrm() {
|
||||||
|
|||||||
Reference in New Issue
Block a user