Browse Source

added phpenv

master
ojizero 5 months ago
parent
commit
f31d550c74
2 changed files with 8 additions and 2 deletions
  1. 2
    2
      .docker_shims.zsh
  2. 6
    0
      .zshrc

+ 2
- 2
.docker_shims.zsh View File

@@ -20,8 +20,8 @@ function docker-into {
local args="${input#* // }"
local args="${args#* // }"

debug "RUNNING: /usr/bin/env docker ${dopts} run -it --rm --volume "${_path}:${_path}" --workdir "${_path}" ${args}"
eval "/usr/bin/env docker ${dopts} run -it --rm --volume "${_path}:${_path}" --workdir "${_path}" ${args}"
debug "RUNNING: /usr/bin/env docker ${dopts} run -it --rm --volume \"${_path}:${_path}\" --workdir "${_path}" ${args}"
eval "/usr/bin/env docker ${dopts} run -it --rm --volume \"${_path}:${_path}\" --workdir \"${_path}\" ${args}"
}

function docker-run {

+ 6
- 0
.zshrc View File

@@ -30,6 +30,12 @@ eval "$(thefuck --alias)"

source "$(dirname $(readlink "${ZSH_PROFILE}"))/.docker_shims.zsh"

export PHPENV_ROOT="/Users/oji/.phpenv"
if [ -d "${PHPENV_ROOT}" ]; then
export PATH="${PHPENV_ROOT}/bin:${PATH}"
eval "$(phpenv init -)"
fi

# Aliases and functions
#


Loading…
Cancel
Save