This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typeset -A virtualenv_map | |
virtualenv_map=() | |
for file in ~/.virtualenvs/*/.project(N) | |
virtualenv_map[${file:h:t}]=$(<$file) | |
virtualenv_chpwd() | |
{ | |
setopt local_options no_auto_pushd | |
local project_path longest_path new_venv | |
if [[ $ZSH_SUBSHELL == 0 ]] && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_setup_pyenv_plugin_dir() | |
{ | |
for plugin ($PYENV_PLUGINS/*(/)) { | |
if ! [[ -e $PYENV_PLUGIN_DIR/${plugin:t} ]] { | |
ln -s $plugin $PYENV_ROOT/plugins | |
} | |
} | |
} | |
pyenvstart() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Conc (interpretScoped, interpretScopedWith, interpretSync) | |
import Database.PostgreSQL.Simple (Connection) | |
import qualified Database.PostgreSQL.Simple.Transaction as Psql | |
import Polysemy.Bundle (Bundle (Bundle), sendBundle) | |
import Polysemy.Internal.Kind (Append) | |
import Polysemy.Membership (ElemOf (Here, There)) | |
import qualified Sync | |
data Connections :: Effect where | |
New :: Connections m Connection |