File tree Expand file tree Collapse file tree 3 files changed +17
-7
lines changed
Expand file tree Collapse file tree 3 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,15 @@ alias cb="simple_clipboard"
188188# Copy contents of a file
189189alias 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
193201alias cbd=" pwd | simple_clipboard"
194202# Copy current git SHA-1
Original file line number Diff line number Diff line change 2525if [ -f " $DOTFILES_PATH /bash_completions/code_jump.bash" ]; then
2626 source " $DOTFILES_PATH /bash_completions/code_jump.bash"
2727fi
28+
29+ complete -o default -o bashdefault -F _command whichr
Original file line number Diff line number Diff 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
6666function gbDA() {
You can’t perform that action at this time.
0 commit comments