Merge pull request #2 from hlecuanda/revert-1-master
Revert "bring up to date with sorin-ionescu/prezto"pull/1537/head
commit
1cbe7567a9
@ -1,9 +0,0 @@
|
||||
[*]
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[{.gitattributes,.gitignore,.gitmodules}]
|
||||
indent_style = tab
|
@ -1,24 +0,0 @@
|
||||
<!-- Please check if a similar issue already exists or has been closed before before opening your issue. -->
|
||||
|
||||
### Description
|
||||
<!-- Provide a general description of the bug or feature -->
|
||||
|
||||
### Expected behavior
|
||||
|
||||
<!-- What you expected to happen -->
|
||||
|
||||
### Actual behavior
|
||||
|
||||
<!-- What actually happened -->
|
||||
|
||||
### Steps to Reproduce
|
||||
|
||||
1. [First Step]
|
||||
2. [Second Step]
|
||||
3. [and so on...]
|
||||
|
||||
### Versions
|
||||
|
||||
- Prezto commit:
|
||||
- ZSH version:
|
||||
- OS information:
|
@ -1,10 +0,0 @@
|
||||
Please be sure to check out our [contributing guidelines](https://github.com/sorin-ionescu/prezto/blob/master/CONTRIBUTING.md)
|
||||
before submitting your pull request.
|
||||
|
||||
Fixes #
|
||||
|
||||
## Proposed Changes
|
||||
|
||||
-
|
||||
-
|
||||
-
|
@ -1,20 +0,0 @@
|
||||
Copyright (c) 2009-2011 Robby Russell and contributors
|
||||
Copyright (c) 2011-2017 Sorin Ionescu and contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
of the Software, and to permit persons to whom the Software is furnished to do
|
||||
so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE
|
@ -1,71 +0,0 @@
|
||||
#!/usr/bin/env zsh
|
||||
#
|
||||
# Creates archive file
|
||||
#
|
||||
# Authors:
|
||||
# Matt Hamilton <m@tthamilton.com>
|
||||
#
|
||||
|
||||
# function archive {
|
||||
|
||||
local archive_name dir_to_archive _gzip_bin _bzip2_bin
|
||||
|
||||
if (( $# != 2 )); then
|
||||
cat >&2 <<EOF
|
||||
usage: $0 [archive_name.zip] [/path/to/include/into/archive]
|
||||
|
||||
Where 'archive.zip' uses any of the following extensions:
|
||||
|
||||
.tar.gz, .tar.bz2, .tar.xz, .tar.lzma, .tar, .zip, .rar, .7z
|
||||
|
||||
There is no '-v' switch; all operations are verbose.
|
||||
EOF
|
||||
return 1
|
||||
fi
|
||||
|
||||
# we are quitting (above) if there are not exactly 2 vars,
|
||||
# so we don't need any argc check here.
|
||||
|
||||
# strip the path, just in case one is provided for some reason
|
||||
archive_name="${1:t}"
|
||||
# use absolute paths, and follow symlinks
|
||||
dir_to_archive="${2}"
|
||||
|
||||
# if the directory doesn't exist, quit. Nothing to archive
|
||||
if [[ ! -e "${dir_to_archive}" ]]; then
|
||||
print "$0: file or directory not valid: ${dir_to_archive}" >&2
|
||||
return 1
|
||||
fi
|
||||
|
||||
# here, we check for dropin/multi-threaded replacements
|
||||
# this should eventually be moved to modules/archive/init.zsh
|
||||
# as a global alias
|
||||
if (( $+commands[pigz] )); then
|
||||
_gzip_bin='pigz'
|
||||
else
|
||||
_gzip_bin='gzip'
|
||||
fi
|
||||
|
||||
if (( $+commands[pbzip2] )); then
|
||||
_bzip2_bin='pbzip2'
|
||||
else
|
||||
_bzip2_bin='bzip2'
|
||||
fi
|
||||
|
||||
case "${archive_name}" in
|
||||
(*.tar.gz|*.tgz) tar -cvf "${archive_name}" --use-compress-program="${_gzip_bin}" "${dir_to_archive}" ;;
|
||||
(*.tar.bz2|*.tbz|*.tbz2) tar -cvf "${archive_name}" --use-compress-program="${_bzip2_bin}" "${dir_to_archive}" ;;
|
||||
(*.tar.xz|*.txz) tar -cvJf "${archive_name}" "${dir_to_archive}" ;;
|
||||
(*.tar.lzma|*.tlz) tar -cvf "${archive_name}" --lzma "${dir_to_archive}" ;;
|
||||
(*.tar) tar -cvf "${archive_name}" "${dir_to_archive}" ;;
|
||||
(*.zip|*.jar) zip -r "${archive_name}" "${dir_to_archive}" ;;
|
||||
(*.rar) rar a "${archive_name}" "${dir_to_archive}" ;;
|
||||
(*.7z) 7za a "${archive_name}" "${dir_to_archive}" ;;
|
||||
(*.gz) print "\n.gz is only useful for single files, and does not capture permissions. Use .tar.gz" ;;
|
||||
(*.bz2) print "\n.bzip2 is only useful for single files, and does not capture permissions. Use .tar.bz2" ;;
|
||||
(*.xz) print "\n.xz is only useful for single files, and does not capture permissions. Use .tar.xz" ;;
|
||||
(*.lzma) print "\n.lzma is only useful for single files, and does not capture permissions. Use .tar.lzma" ;;
|
||||
(*) print "\nunknown archive type for archive: ${archive_name}" ;;
|
||||
esac
|
||||
|
||||
# }
|
@ -1 +1 @@
|
||||
Subproject commit 2cb6eb6e29852e64a146b0284275ecdc0661b082
|
||||
Subproject commit f0a745576ff69fa608421ee7214d4cd77b43e62f
|
@ -1,23 +1,15 @@
|
||||
Command-Not-Found
|
||||
=================
|
||||
|
||||
When you try to use a command that is not available locally, searches
|
||||
the package manager for a package offering that command and suggests
|
||||
the proper install command.
|
||||
|
||||
Debian-based and Arch Linux-based distributions use the [`command-not-found`][1] tool.
|
||||
|
||||
macOS uses Homebrew's [`command-not-found` clone][2]. Note that you also need to [follow the instructions to tap the `command-not-found` homebrew repository][3].
|
||||
|
||||
Displays installation information for not found commands by loading the
|
||||
[command-not-found][1] tool on Debian-based and Arch Linux-based distributions.
|
||||
|
||||
Authors
|
||||
-------
|
||||
|
||||
*The authors of this module should be contacted via the [issue tracker][4].*
|
||||
*The authors of this module should be contacted via the [issue tracker][2].*
|
||||
|
||||
- [Joseph Booker](https://github.com/sargas)
|
||||
|
||||
[1]: https://code.launchpad.net/command-not-found
|
||||
[2]: https://github.com/Homebrew/homebrew-command-not-found
|
||||
[3]: https://github.com/Homebrew/homebrew-command-not-found#install
|
||||
[4]: https://github.com/sorin-ionescu/prezto/issues
|
||||
[2]: https://github.com/sorin-ionescu/prezto/issues
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 2a30b05a5cf724a2d1c4c140c302dbf93f6aa6f6
|
||||
Subproject commit 3a2bb8781d32d05d1bf05deeeb476beb651e8272
|
@ -1,190 +0,0 @@
|
||||
# ZSH Docker Aliases
|
||||
|
||||
Defines [Docker][1] aliases and functions.
|
||||
|
||||
## Aliases
|
||||
|
||||
### Docker
|
||||
|
||||
- `dk` is short for `docker`
|
||||
- `dka` Attach to a running container
|
||||
- `dkb` Build an image from a Dockerfile
|
||||
- `dkd` Inspect changes on a container's filesystem
|
||||
- `dkdf` Show docker filesystem usage
|
||||
- `dke` Run a command in a running container
|
||||
- `dkE` Run an interactive command in a running container
|
||||
- `dkh` Show the history of an image
|
||||
- `dki` List images
|
||||
- `dkin` Return low-level information on a container, image or task
|
||||
- `dkk` Kill a running container
|
||||
- `dkl` Fetch the logs of a container
|
||||
- `dkli` Log in to a Docker registry
|
||||
- `dklo` Log out from a Docker registry
|
||||
- `dkls` is alias for `dkps`
|
||||
- `dkp` Pause all processes within one or more containers<Paste>
|
||||
- `dkP` Unpause all processes within one or more containers
|
||||
- `dkpl` Pull an image or a repository from a registry
|
||||
- `dkph` Push an image or a repository to a registry
|
||||
- `dkps` List containers
|
||||
- `dkpsa` List all containers (default lists just running)
|
||||
- `dkr` Run a command in a new container
|
||||
- `dkR` Run an interactive command in a new container and automatically remove the container when it exits
|
||||
- `dkRe` like `dkR` and set entry point to `/bin/bash`
|
||||
- `dkrm` Remove one or more containers
|
||||
- `dkrmi` Remove one or more images
|
||||
- `dkrmC` Clean up exited containers
|
||||
- `dkrmI` Clean up dangling images
|
||||
- `dkrmV` Clean up unused volumes ( Docker >= 1.9 )
|
||||
- `dkrn` Rename a container
|
||||
- `dks` Start one or more stopped containers
|
||||
- `dkS` Restart a container
|
||||
- `dkss` Display a live stream of container(s) resource usage statistics
|
||||
- `dksv` Save one or more images to a tar archive (streamed to STDOUT by default)
|
||||
- `dkt` Tag an image into a repository
|
||||
- `dktop` Display the running processes of a container
|
||||
- `dkup` Update configuration of one or more containers
|
||||
- `dkV` Manage Docker volumes
|
||||
- `dkv` Show the Docker version information
|
||||
- `dkw` Block until a container stops, then print its exit code<Paste>
|
||||
- `dkx` Stop a running container
|
||||
|
||||
#### container (C)
|
||||
|
||||
- `dkC` Manage containers
|
||||
- `dkCa` Attach to a running container
|
||||
- `dkCcp` Copy files/folders between a container and the local filesystem
|
||||
- `dkCd` Inspect changes on a container's filesystem
|
||||
- `dkCe` Run a command in a running container
|
||||
- `dkCin` Display detailed information on one or more containers
|
||||
- `dkCk` Kill one or more running containers
|
||||
- `dkCl` Fetch the logs of a container
|
||||
- `dkCls` List containers
|
||||
- `dkCp` Pause all processes within one or more containers
|
||||
- `dkCpr` Remove all stopped containers
|
||||
- `dkCrn` Rename a container
|
||||
- `dkCS` Restart one or more containers
|
||||
- `dkCrm` Remove one or more containers
|
||||
- `dkCr` Run a command in a new container
|
||||
- `dkCR` Run an interactive command in a new container and automatically remove the container when it exits
|
||||
- `dkCRe` like `dkCR` and set entry point to `/bin/bash`
|
||||
- `dkCs` Start one or more stopped containers
|
||||
- `dkCss` Display a live stream of container(s) resource usage statistics
|
||||
- `dkCx` Stop one or more running containers
|
||||
- `dkCtop` Display the running processes of a container
|
||||
- `dkCP` Unpause all processes within one or more containers
|
||||
- `dkCup` Update configuration of one or more containers
|
||||
- `dkCw` Block until one or more containers stop, then print their exit codes
|
||||
|
||||
#### image (I)
|
||||
|
||||
- `dkI` Manage images
|
||||
- `dkIb` Build an image from a Dockerfile
|
||||
- `dkIh` Show the history of an image
|
||||
- `dkIim` Import the contents from a tarball to create a filesystem image
|
||||
- `dkIin` Display detailed information on one or more images
|
||||
- `dkIls` List images
|
||||
- `dkIpr` Remove unused images
|
||||
- `dkIpl` Pull an image or a repository from a registry
|
||||
- `dkIph` Push an image or a repository to a registry
|
||||
- `dkIrm` Remove one or more images
|
||||
- `dkIsv` Save one or more images to a tar archive (streamed to STDOUT by default)
|
||||
- `dkIt` Tag an image into a repository
|
||||
|
||||
#### volume (V)
|
||||
|
||||
- `dkV` Manage volumes
|
||||
- `dkVin` Display detailed information on one or more volumes
|
||||
- `dkVls` List volumes
|
||||
- `dkVpr` Remove all unused volumes
|
||||
- `dkVrm` Remove one or more volumes
|
||||
|
||||
#### network (N)
|
||||
|
||||
- `dkN` Manage networks
|
||||
- `dkNs` Connect a container to a network
|
||||
- `dkNx` Disconnects a container from a network
|
||||
- `dkNin` Displays detailed information on a network
|
||||
- `dkNls` Lists all the networks created by the user
|
||||
- `dkNpr` Remove all unused networks
|
||||
- `dkNrm` Deletes one or more networks
|
||||
|
||||
#### system (Y)
|
||||
|
||||
- `dkY` Manage Docker
|
||||
- `dkYdf` Show docker filesystem usage
|
||||
- `dkYpr` Remove unused data
|
||||
|
||||
#### stack (K)
|
||||
|
||||
- `dkK` Manage Docker stacks
|
||||
- `dkKls` List stacks
|
||||
- `dkKps` List the tasks in the stack
|
||||
- `dkKrm` Remove the stack
|
||||
|
||||
#### swarm (W)
|
||||
|
||||
- `dkW` Manage Docker Swarm
|
||||
|
||||
### Docker Machine
|
||||
|
||||
- `dkm` is short for `docker-machine`
|
||||
- `dkma` Get or set the active machine
|
||||
- `dkmcp` Copy files between machines
|
||||
- `dkmd` Set up the default machine ; alowing you to use `dkme` without arguments
|
||||
- `dkme` Set up the environment for the Docker client (eg: `dkme staging` to toggle to staging)
|
||||
- `dkmin` Inspect information about a machine
|
||||
- `dkmip` Get the IP address of a machine
|
||||
- `dkmk` Kill a machine
|
||||
- `dkmls` List machines
|
||||
- `dkmpr` Re-provision existing machines
|
||||
- `dkmps` is alias for `dkmls`
|
||||
- `dkmrg` Regenerate TLS Certificates for a machine
|
||||
- `dkmrm` Remove a machine
|
||||
- `dkms` Start a machine
|
||||
- `dkmsh` Log into or run a command on a machine with SSH
|
||||
- `dkmst` Get the status of a machine
|
||||
- `dkmS` Restart a machine
|
||||
- `dkmu` Get the URL of a machine
|
||||
- `dkmup` Upgrade a machine to the latest version of Docker
|
||||
- `dkmV` Show the Docker Machine version or a machine docker version
|
||||
- `dkmx` Stop a machine
|
||||
|
||||
### Docker Compose
|
||||
|
||||
- `dkc` is short for `docker-compose`
|
||||
- `dkcb` Build or rebuild services
|
||||
- `dkcB` Build or rebuild services and do not use cache when building the image
|
||||
- `dkcd` Stop and remove containers, networks, images, and volumes
|
||||
- `dkce` Execute a command in a running container
|
||||
- `dkck` Kill containers
|
||||
- `dkcl` View output from containers
|
||||
- `dkcls` is alias for `dkcps`
|
||||
- `dkcp` Pause services
|
||||
- `dkcP` Unpause services
|
||||
- `dkcpl` Pull service images
|
||||
- `dkcph` Push service images
|
||||
- `dkcps` List containers
|
||||
- `dkcr` Run a one-off command
|
||||
- `dkcR` Run a one-off command and remove container after run.
|
||||
- `dkcrm` Remove stopped containers
|
||||
- `dkcs` Start services
|
||||
- `dkcsc` Set number of containers for a service
|
||||
- `dkcS` Restart services
|
||||
- `dkcu` Create and start containers
|
||||
- `dkcU` Create and start containers in detached mode:
|
||||
Run containers in the background, print new container names
|
||||
- `dkcV` Show the Docker-Compose version information
|
||||
- `dkcx` Stop services
|
||||
|
||||
## Support
|
||||
|
||||
If you're having problems, use the [Prezto issue tracker][2].
|
||||
|
||||
## Acknowledgements
|
||||
|
||||
This module is a copy of [akarzim/zsh-docker-aliases][3] by [François Vantomme][4] (MIT License).
|
||||
|
||||
[1]: https://www.docker.com/
|
||||
[2]: https://github.com/zsh-users/prezto/issues
|
||||
[3]: https://github.com/akarzim/zsh-docker-aliases
|
||||
[4]: https://github.com/akarzim
|
@ -1,177 +0,0 @@
|
||||
#
|
||||
# Defines Docker aliases.
|
||||
#
|
||||
# Author:
|
||||
# François Vantomme <akarzim@gmail.com>
|
||||
#
|
||||
|
||||
#
|
||||
# Aliases
|
||||
#
|
||||
|
||||
# Docker
|
||||
alias dk='docker'
|
||||
alias dka='docker attach'
|
||||
alias dkb='docker build'
|
||||
alias dkd='docker diff'
|
||||
alias dkdf='docker system df'
|
||||
alias dke='docker exec'
|
||||
alias dkE='docker exec -it'
|
||||
alias dkh='docker history'
|
||||
alias dki='docker images'
|
||||
alias dkin='docker inspect'
|
||||
alias dkim='docker import'
|
||||
alias dkk='docker kill'
|
||||
alias dkl='docker logs'
|
||||
alias dkli='docker login'
|
||||
alias dklo='docker logout'
|
||||
alias dkls='docker ps'
|
||||
alias dkp='docker pause'
|
||||
alias dkP='docker unpause'
|
||||
alias dkpl='docker pull'
|
||||
alias dkph='docker push'
|
||||
alias dkps='docker ps'
|
||||
alias dkpsa='docker ps -a'
|
||||
alias dkr='docker run'
|
||||
alias dkR='docker run -it --rm'
|
||||
alias dkRe='docker run -it --rm --entrypoint /bin/bash'
|
||||
alias dkRM='docker system prune'
|
||||
alias dkrm='docker rm'
|
||||
alias dkrmi='docker rmi'
|
||||
alias dkrn='docker rename'
|
||||
alias dks='docker start'
|
||||
alias dkS='docker restart'
|
||||
alias dkss='docker stats'
|
||||
alias dksv='docker save'
|
||||
alias dkt='docker tag'
|
||||
alias dktop='docker top'
|
||||
alias dkup='docker update'
|
||||
alias dkV='docker volume'
|
||||
alias dkv='docker version'
|
||||
alias dkw='docker wait'
|
||||
alias dkx='docker stop'
|
||||
|
||||
## Container (C)
|
||||
alias dkC='docker container'
|
||||
alias dkCa='docker container attach'
|
||||
alias dkCcp='docker container cp'
|
||||
alias dkCd='docker container diff'
|
||||
alias dkCe='docker container exec'
|
||||
alias dkCin='docker container inspect'
|
||||
alias dkCk='docker container kill'
|
||||
alias dkCl='docker container logs'
|
||||
alias dkCls='docker container ls'
|
||||
alias dkCp='docker container pause'
|
||||
alias dkCpr='docker container prune'
|
||||
alias dkCrn='docker container rename'
|
||||
alias dkCS='docker container restart'
|
||||
alias dkCrm='docker container rm'
|
||||
alias dkCr='docker container run'
|
||||
alias dkCR='docker container run -it --rm'
|
||||
alias dkCRe='docker container run -it --rm --entrypoint /bin/bash'
|
||||
alias dkCs='docker container start'
|
||||
alias dkCss='docker container stats'
|
||||
alias dkCx='docker container stop'
|
||||
alias dkCtop='docker container top'
|
||||
alias dkCP='docker container unpause'
|
||||
alias dkCup='docker container update'
|
||||
alias dkCw='docker container wait'
|
||||
|
||||
## Image (I)
|
||||
alias dkI='docker image'
|
||||
alias dkIb='docker image build'
|
||||
alias dkIh='docker image history'
|
||||
alias dkIim='docker image import'
|
||||
alias dkIin='docker image inspect'
|
||||
alias dkIls='docker image ls'
|
||||
alias dkIpr='docker image prune'
|
||||
alias dkIpl='docker image pull'
|
||||
alias dkIph='docker image push'
|
||||
alias dkIrm='docker image rm'
|
||||
alias dkIsv='docker image save'
|
||||
alias dkIt='docker image tag'
|
||||
|
||||
## Volume (V)
|
||||
alias dkV='docker volume'
|
||||
alias dkVin='docker volume inspect'
|
||||
alias dkVls='docker volume ls'
|
||||
alias dkVpr='docker volume prune'
|
||||
alias dkVrm='docker volume rm'
|
||||
|
||||
## Network (N)
|
||||
alias dkN='docker network'
|
||||
alias dkNs='docker network connect'
|
||||
alias dkNx='docker network disconnect'
|
||||
alias dkNin='docker network inspect'
|
||||
alias dkNls='docker network ls'
|
||||
alias dkNpr='docker network prune'
|
||||
alias dkNrm='docker network rm'
|
||||
|
||||
## System (Y)
|
||||
alias dkY='docker system'
|
||||
alias dkYdf='docker system df'
|
||||
alias dkYpr='docker system prune'
|
||||
|
||||
## Stack (K)
|
||||
alias dkK='docker stack'
|
||||
alias dkKls='docker stack ls'
|
||||
alias dkKps='docker stack ps'
|
||||
alias dkKrm='docker stack rm'
|
||||
|
||||
## Swarm (W)
|
||||
alias dkW='docker swarm'
|
||||
|
||||
## CleanUp (rm)
|
||||
# Clean up exited containers (docker < 1.13)
|
||||
alias dkrmC='docker rm $(docker ps -qaf status=exited)'
|
||||
# Clean up dangling images (docker < 1.13)
|
||||
alias dkrmI='docker rmi $(docker images -qf dangling=true)'
|
||||
# Clean up dangling volumes (docker < 1.13)
|
||||
alias dkrmV='docker volume rm $(docker volume ls -qf dangling=true)'
|
||||
|
||||
|
||||
# Docker Machine (m)
|
||||
alias dkm='docker-machine'
|
||||
alias dkma='docker-machine active'
|
||||
alias dkmcp='docker-machine scp'
|
||||
alias dkmin='docker-machine inspect'
|
||||
alias dkmip='docker-machine ip'
|
||||
alias dkmk='docker-machine kill'
|
||||
alias dkmls='docker-machine ls'
|
||||
alias dkmpr='docker-machine provision'
|
||||
alias dkmps='docker-machine ps'
|
||||
alias dkmrg='docker-machine regenerate-certs'
|
||||
alias dkmrm='docker-machine rm'
|
||||
alias dkms='docker-machine start'
|
||||
alias dkmsh='docker-machine ssh'
|
||||
alias dkmst='docker-machine status'
|
||||
alias dkmS='docker-machine restart'
|
||||
alias dkmu='docker-machine url'
|
||||
alias dkmup='docker-machine upgrade'
|
||||
alias dkmv='docker-machine version'
|
||||
alias dkmx='docker-machine stop'
|
||||
|
||||
# Docker Compose (c)
|
||||
alias dkc='docker-compose'
|
||||
alias dkcb='docker-compose build'
|
||||
alias dkcB='docker-compose build --no-cache'
|
||||
alias dkcd='docker-compose down'
|
||||
alias dkce='docker-compose exec'
|
||||
alias dkck='docker-compose kill'
|
||||
alias dkcl='docker-compose logs'
|
||||
alias dkcls='docker-compose ps'
|
||||
alias dkcp='docker-compose pause'
|
||||
alias dkcP='docker-compose unpause'
|
||||
alias dkcpl='docker-compose pull'
|
||||
alias dkcph='docker-compose push'
|
||||
alias dkcps='docker-compose ps'
|
||||
alias dkcr='docker-compose run'
|
||||
alias dkcR='docker-compose run --rm'
|
||||
alias dkcrm='docker-compose rm'
|
||||
alias dkcs='docker-compose start'
|
||||
alias dkcsc='docker-compose scale'
|
||||
alias dkcS='docker-compose restart'
|
||||
alias dkcu='docker-compose up'
|
||||
alias dkcU='docker-compose up -d'
|
||||
alias dkcv='docker-compose version'
|
||||
alias dkcx='docker-compose stop'
|
@ -1,57 +0,0 @@
|
||||
#
|
||||
# Defines Docker aliases.
|
||||
#
|
||||
# Author:
|
||||
# François Vantomme <akarzim@gmail.com>
|
||||
#
|
||||
|
||||
# Return if requirements are not found.
|
||||
if (( ! $+commands[docker] )); then
|
||||
return 1
|
||||
fi
|
||||
|
||||
#
|
||||
# Functions
|
||||
#
|
||||
|
||||
# Set Docker Machine environment
|
||||
function dkme {
|
||||
if (( ! $+commands[docker-machine] )); then
|
||||
return 1
|
||||
fi
|
||||
|
||||
eval $(docker-machine env $1)
|
||||
}
|
||||
|
||||
# Set Docker Machine default machine
|
||||
function dkmd {
|
||||
if (( ! $+commands[docker-machine] )); then
|
||||
return 1
|
||||
fi
|
||||
|
||||
pushd ~/.docker/machine/machines
|
||||
|
||||
if [[ ! -d $1 ]]; then
|
||||
echo "Docker machine '$1' does not exists. Abort."
|
||||
popd
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [[ -L default ]]; then
|
||||
eval $(rm -f default)
|
||||
elif [[ -d default ]]; then
|
||||
echo "A default machine already exists. Abort."
|
||||
popd
|
||||
return 1
|
||||
elif [[ -e default ]]; then
|
||||
echo "A file named 'default' already exists. Abort."
|
||||
popd
|
||||
return 1
|
||||
fi
|
||||
|
||||
eval $(ln -s $1 default)
|
||||
popd
|
||||
}
|
||||
|
||||
# Source module files.
|
||||
source "${0:h}/alias.zsh"
|
@ -1 +0,0 @@
|
||||
Subproject commit 90b531a5daaa545c74c7d98974b54cbdb92659fc
|
@ -1 +1 @@
|
||||
Subproject commit aae3388491c2312c4efb2e86bcb999927bb2900e
|
||||
Subproject commit 7a4b54b708ab88e0421097614f1acaa7a973c795
|
@ -1,34 +0,0 @@
|
||||
#
|
||||
# Exposes information about the Perl environment via the $perl_info associative
|
||||
# array.
|
||||
#
|
||||
# Authors:
|
||||
# JINNOUCHI Yasushi <delphinus@remora.cx>
|
||||
#
|
||||
|
||||
# function perl-info {
|
||||
|
||||
local version
|
||||
local version_format
|
||||
local version_formatted
|
||||
|
||||
# Clean up previous $perl_info.
|
||||
unset perl_info
|
||||
typeset -gA perl_info
|
||||
|
||||
if (( $+commands[perlbrew] )); then
|
||||
version="${PERLBREW_PERL##*perl-}"
|
||||
elif (( $+commands[plenv] )); then
|
||||
version=$(plenv version-name)
|
||||
elif (( $+commands[perl] )); then
|
||||
version=$(perl -e 'printf "%vd", $^V')
|
||||
fi
|
||||
|
||||
# Format version.
|
||||
if [[ -n "$version" ]]; then
|
||||
zstyle -s ':prezto:module:perl:info:version' format 'version_format'
|
||||
zformat -f version_formatted "$version_format" "v:$version"
|
||||
perl_info[version]="$version_formatted"
|
||||
fi
|
||||
|
||||
# }
|
@ -1 +1 @@
|
||||
Subproject commit 3ad94b659910c775a6560c45b1524d23d8c83b09
|
||||
Subproject commit 43cb371f361eecf62e9dac7afc73a1c16edf89c7
|
@ -1 +0,0 @@
|
||||
Subproject commit d95adb7cb58ec9d45bf024951770d975e089ef1d
|
@ -1 +0,0 @@
|
||||
Subproject commit 17c069d25ac7b24af6b5dc7ecb9597cef881f582
|
@ -1 +1 @@
|
||||
Subproject commit c48e4c69ef5c368ea7cda961ed9d0e298a5ae1fc
|
||||
Subproject commit 8e81152340c4beb2d941340d1feb2dc29bbcc309
|
@ -1 +1 @@
|
||||
Subproject commit a95d55cc7d3a73fc562ac11e23c26113ed6d58cf
|
||||
Subproject commit fb4c37dad3c5cbdebca61a8ff5545397c11d450f
|
@ -1 +1 @@
|
||||
../external/async/async.zsh
|
||||
../external/pure/async.zsh
|
@ -1,30 +0,0 @@
|
||||
#
|
||||
# Prompt setup function commonly used by prompt themes.
|
||||
#
|
||||
# Authors:
|
||||
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||
#
|
||||
|
||||
# function prompt-pwd {
|
||||
|
||||
setopt localoptions extendedglob
|
||||
|
||||
local current_pwd="${PWD/#$HOME/~}"
|
||||
local ret_directory
|
||||
|
||||
if [[ "$current_pwd" == (#m)[/~] ]]; then
|
||||
ret_directory="$MATCH"
|
||||
unset MATCH
|
||||
elif zstyle -m ':prezto:module:prompt' pwd-length 'full'; then
|
||||
ret_directory=${PWD}
|
||||
elif zstyle -m ':prezto:module:prompt' pwd-length 'long'; then
|
||||
ret_directory=${current_pwd}
|
||||
else
|
||||
ret_directory="${${${${(@j:/:M)${(@s:/:)current_pwd}##.#?}:h}%/}//\%/%%}/${${current_pwd:t}//\%/%%}"
|
||||
fi
|
||||
|
||||
unset current_pwd
|
||||
|
||||
print "$ret_directory"
|
||||
|
||||
# }
|
@ -1 +0,0 @@
|
||||
../external/powerlevel9k/powerlevel9k.zsh-theme
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue