From fa7dcc749a15d36a14ddcd5abcd2fbbc10fa7324 Mon Sep 17 00:00:00 2001 From: "Collin J. Doering" Date: Sat, 18 May 2024 21:20:43 -0400 Subject: [PATCH] home: .zshrc: remove unneeded sections ported from dotfiles --- user-config/zsh/.zshrc | 94 ------------------------------------------ 1 file changed, 94 deletions(-) diff --git a/user-config/zsh/.zshrc b/user-config/zsh/.zshrc index 45d15b2..3c0570b 100644 --- a/user-config/zsh/.zshrc +++ b/user-config/zsh/.zshrc @@ -122,26 +122,6 @@ compdef xl='eza' compdef xla='eza' compdef xx='eza' -alias av='aws-vault' -alias avl='aws-vault login ${AWS_PROFILE:-default}' -alias ave='aws-vault exec ${AWS_PROFILE:-default} --' -alias aven='aws-vault exec --no-session ${AWS_PROFILE:-default} --' -compdef av='aws-vault' -compdef avl='aws-vault' -compdef ave='aws-vault' -compdef aven='aws-vault' - -AWS_ALIAS='aws-vault exec --no-session ${AWS_PROFILE:-default} -- aws' -AWS_SHELL_ALIAS='aws-vault exec --no-session ${AWS_PROFILE:-default} -- aws-shell' -alias aws="$AWS_ALIAS" -alias aws-shell="$AWS_SHELL_ALIAS" -alias unaws='unset AWS_{PROFILE,SECRET_ACCESS_KEY,ACCESS_KEY_ID,SDK_LOAD_CONFIG}' -alias alias-aws="alias aws='${AWS_ALIAS}'; alias aws-shell='${AWS_SHELL_ALIAS}'" -alias unalias-aws='unalias aws; unalias aws-shell' - -alias ff='firefox' -alias ffp='firefox --private-window' - alias e='emacsclient -t' alias kssh='kitty +kitten ssh' alias qemu="qemu-system-$(uname -m) -enable-kvm" @@ -155,37 +135,6 @@ alias si='sudo -i' compdef s='sudo' compdef si='sudo' -# Use colordiff in place of diff -#alias diff='colordiff' - - -# -# TODO: uncomment -# - -# # Shortcuts for ssh -# function ssht() { -# if [ "$#" -lt 1 ]; then -# echo Invalid use of ssht -# return 1 -# else -# hostname="$1" -# shift -# other_options="$*" -# ssh -t $other_options $hostname -- /bin/sh -c 'tmux attach || (echo tmux not found, trying screen. && screen -R || echo No terminal multiplexer found. Have a shell. && $SHELL)' -# fi -# } - -# # Set colors to use with grep -# export GREP_COLOR="1;33" - -# # Use source-highlight to make code in less syntax highlighted -# export LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s" -# export LESS=' -R ' - -# # Set text/background colors for ls -# export LS_COLORS="di=01;37" - # Turn off noscroll stty stop undef @@ -195,49 +144,6 @@ eval "$(direnv hook zsh)" # Use zsh-source-highlight source ~/.guix-home/profile/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh -# Setup nix package manager -source /run/current-system/profile/etc/profile.d/nix.sh - -# TODO: not packaged on guix -# # Initialize nvm for managing node environments -# source /usr/share/nvm/init-nvm.sh - -# TODO: not packaged on guix -# # Use hub completion -# eval "$(hub alias -s zsh)" - -# # Use aws-cli completion -# source /usr/bin/aws_zsh_completer.sh - -# TODO: not packaged on guix -# # Use doctl completion -# source <(doctl completion zsh) - -# TODO: not packaged on guix -# # Use kubectl completion -# source <(kubectl completion zsh) - -# TODO: not packaged on guix -# # Use helm completion -# source <(helm completion zsh) - -# # Set GOPATH and add $GOPATH/bin to PATH -# export GOPATH=~/.go -# export PATH="${PATH}:${GOPATH}/bin" - -# # Use gcloud completion -# source /opt/google-cloud-sdk/completion.zsh.inc - -# # Setup libvirt default session uri -# export LIBVIRT_DEFAULT_URI=qemu:///system - -# # Set default vagrant provider to libvirt -# export VAGRANT_DEFAULT_PROVIDER=libvirt - -# # Setup ESP-32 sdk -# export IDF_PATH=/opt/esp-idf-sdk -# . ${IDF_PATH}/add_path.sh > /dev/null 2>&1 - # Access pem ssh keys from password store pass-ssh() { psw="$1"