From 11c834062c20e11f941ba34741f2d5edb434c089 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Tue, 9 Jul 2024 10:41:27 +1000 Subject: [PATCH 1/3] Load password-store in zsh/all, so alfred-pass works --- dot-config/zsh/all/pass.zsh | 7 +++++++ dot-config/zsh/login/pass.zsh | 4 ---- 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 dot-config/zsh/all/pass.zsh delete mode 100644 dot-config/zsh/login/pass.zsh diff --git a/dot-config/zsh/all/pass.zsh b/dot-config/zsh/all/pass.zsh new file mode 100644 index 0000000..5d9a2e0 --- /dev/null +++ b/dot-config/zsh/all/pass.zsh @@ -0,0 +1,7 @@ +#! zsh +if [[ -z $PASSWORD_STORE_DIR ]]; then + export PASSWORD_STORE_DIR=$XDG_DATA_HOME/pass +fi +if [[ -z $PASSWORD_STORE_GENERATED_LENGTH ]]; then + export PASSWORD_STORE_GENERATED_LENGTH=50 +fi diff --git a/dot-config/zsh/login/pass.zsh b/dot-config/zsh/login/pass.zsh deleted file mode 100644 index 570b011..0000000 --- a/dot-config/zsh/login/pass.zsh +++ /dev/null @@ -1,4 +0,0 @@ -#! zsh -if [[ -z $PASSWORD_STORE_DIR ]]; then - export PASSWORD_STORE_DIR=$XDG_DATA_HOME/pass -fi From d23f8118f70888b4ebe6ab96790c60e77d2e43f3 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Tue, 9 Jul 2024 10:41:47 +1000 Subject: [PATCH 2/3] Add convenience alias for docker-compose --- dot-config/zsh/interactive/aliases.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dot-config/zsh/interactive/aliases.zsh b/dot-config/zsh/interactive/aliases.zsh index d9c46e0..f70ddc5 100644 --- a/dot-config/zsh/interactive/aliases.zsh +++ b/dot-config/zsh/interactive/aliases.zsh @@ -22,3 +22,5 @@ alias mmv='noglob zmv -W' # make sure ELinks can detect when it's in tmux alias elinks="STY= elinks" + +alias dco='docker-compose' From 68f1a67e66c3c9edf908161c24184f5fb21454c0 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Tue, 9 Jul 2024 10:42:15 +1000 Subject: [PATCH 3/3] Add MacPorts bins to path if present --- dot-config/zsh/login/path.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dot-config/zsh/login/path.zsh b/dot-config/zsh/login/path.zsh index 75809d8..a4d082a 100644 --- a/dot-config/zsh/login/path.zsh +++ b/dot-config/zsh/login/path.zsh @@ -5,6 +5,8 @@ if (( $+commands[brew] )); then /usr/local/sbin ~/Library/Python/*/bin(N) /usr/local/share/google-cloud-sdk/bin + /opt/local/bin + /opt/local/sbin $path ) fi