Skip to content

Commit baaa2f2

Browse files
committed
updates
1 parent 41da225 commit baaa2f2

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

bashrc/aliases.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,15 @@ alias cb="simple_clipboard"
188188
# Copy contents of a file
189189
alias cbf="simple_clipboard <"
190190
# Copy SSH public key
191-
alias cbs="echo 'Copying ~/.ssh/id_rsa.pub to clipboard...' && simple_clipboard < ~/.ssh/id_rsa.pub"
191+
cbs() {
192+
if [ -f ~/.ssh/id_rsa.pub ]; then
193+
echo 'Copying ~/.ssh/id_rsa.pub to clipboard...'
194+
simple_clipboard < ~/.ssh/id_rsa.pub
195+
else
196+
echo 'Fetching SSH key from 1Password...'
197+
op item get "ssh-key" --fields label=public_key | simple_clipboard
198+
fi
199+
}
192200
# Copy current working directory
193201
alias cbd="pwd | simple_clipboard"
194202
# Copy current git SHA-1

bashrc/bash_completions.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ fi
2525
if [ -f "$DOTFILES_PATH/bash_completions/code_jump.bash" ]; then
2626
source "$DOTFILES_PATH/bash_completions/code_jump.bash"
2727
fi
28+
29+
complete -o default -o bashdefault -F _command whichr

bashrc/development.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ gpsba() { _git_push_and_approve "$@" build all; }
5454
# Gitlab CI (DocSpring)
5555
# -------------------------------------------------
5656
# Show latest CI pipeline in terminal
57-
alias ci="./scripts/circleci_pipeline_status -f '#%n: %s. URL: %u'"
57+
# alias ci="./scripts/circleci_pipeline_status -f '#%n: %s. URL: %u'"
5858
# Show latest CI pipeline in browser
59-
alias sci="./scripts/show_latest_circleci_pipeline"
60-
# Run failed tests from the most recent failed CI pipeline
61-
alias rci="./scripts/run_failed_ci_pipeline_specs"
62-
# Refresh CI status in prompt
63-
alias rfci="./scripts/circleci_pipeline_status > /dev/null"
59+
# alias sci="./scripts/show_latest_circleci_pipeline"
60+
# # Run failed tests from the most recent failed CI pipeline
61+
# alias rci="./scripts/run_failed_ci_pipeline_specs"
62+
# # Refresh CI status in prompt
63+
# alias rfci="./scripts/circleci_pipeline_status > /dev/null"
6464

6565
# Delete git branch locally and on remote
6666
function gbDA() {

0 commit comments

Comments
 (0)