Compare commits
No commits in common. "8dd3d0a5f442676d93cc54ab0bb17e2b9b75eda5" and "0b61b1738bd484672ca1edbf2d30e702b3b9cb32" have entirely different histories.
8dd3d0a5f4
...
0b61b1738b
@ -1,4 +1,4 @@
|
|||||||
version: 0.30.0
|
version: 0.29.0
|
||||||
list:
|
list:
|
||||||
- provider: openai
|
- provider: openai
|
||||||
models:
|
models:
|
||||||
|
|||||||
@ -41,7 +41,7 @@ iab idate <c-r>=strftime("%Y-%m-%d")<cr>
|
|||||||
nmap <leader>toc <cmd>.put =execute('.,$write !gh-md-toc --hide-header --hide-footer')<cr>
|
nmap <leader>toc <cmd>.put =execute('.,$write !gh-md-toc --hide-header --hide-footer')<cr>
|
||||||
|
|
||||||
" use \ tf to format a buffer as terraform
|
" use \ tf to format a buffer as terraform
|
||||||
nmap <leader>tf <cmd>!tofu fmt -no-color %<cr>
|
nmap <leader>tf <cmd>!terraform fmt %<cr>
|
||||||
|
|
||||||
set lazyredraw " redraw only when req'd
|
set lazyredraw " redraw only when req'd
|
||||||
set wildmenu " visual auto-complete
|
set wildmenu " visual auto-complete
|
||||||
|
|||||||
@ -1,6 +0,0 @@
|
|||||||
aws-ec2-instances() {
|
|
||||||
aws ec2 describe-instances --output json \
|
|
||||||
| jq -r '.Reservations[].Instances[] |
|
|
||||||
[.InstanceId, .State.Name, .PrivateIpAddress, (.PublicIpAddress // "N/A")] |
|
|
||||||
@tsv'
|
|
||||||
}
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
aws-publish-ssh-key() {
|
|
||||||
local key_name="${1:-jswank-$(hostname)}"
|
|
||||||
local key_file="${2:-$HOME/.ssh/id_ed25519.pub}"
|
|
||||||
|
|
||||||
[[ -f "$key_file" ]] || { echo "Key file not found: $key_file" >&2; return 1; }
|
|
||||||
|
|
||||||
aws ec2 import-key-pair \
|
|
||||||
--key-name "$key_name" \
|
|
||||||
--public-key-material "fileb://$key_file"
|
|
||||||
}
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
aws-set-prompt() {
|
|
||||||
export AWS_ENVIRONMENT=$(aws iam list-account-aliases | jq -r '.AccountAliases[0]')
|
|
||||||
}
|
|
||||||
11
zsh/.zshrc
11
zsh/.zshrc
@ -1,6 +1,5 @@
|
|||||||
alias ls='ls --color=auto'
|
alias ls='ls --color=auto'
|
||||||
alias grep='grep --color'
|
alias grep='grep --color'
|
||||||
alias vim='nvim'
|
|
||||||
|
|
||||||
fpath+=~/.local/share/zsh/functions
|
fpath+=~/.local/share/zsh/functions
|
||||||
|
|
||||||
@ -21,9 +20,6 @@ if [ "${TERM}" = "xterm" ]; then
|
|||||||
TERM=xterm-256color
|
TERM=xterm-256color
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# setup my personal functions
|
|
||||||
autoload -Uz ~/.local/share/zsh/functions/*(.:t)
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Prompt setup
|
# Prompt setup
|
||||||
#
|
#
|
||||||
@ -88,7 +84,7 @@ if [ -e $HOME/cfa-work/.zshrc ]; then
|
|||||||
. $HOME/cfa-work/.zshrc
|
. $HOME/cfa-work/.zshrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for env in $HOME/.okta/.env $HOME/.config/aws/.env $HOME/.config/github/.env $HOME/.config/aichat/.env; do
|
for env in $HOME/.okta/.env $HOME/.aws/.env $HOME/.config/github/.env $HOME/.config/aichat/.env; do
|
||||||
if [ -r $env ]; then
|
if [ -r $env ]; then
|
||||||
export $(xargs < $env)
|
export $(xargs < $env)
|
||||||
fi
|
fi
|
||||||
@ -106,9 +102,6 @@ if command -v aws_completer > /dev/null; then
|
|||||||
complete -C aws_completer aws
|
complete -C aws_completer aws
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if command -v tofu > /dev/null; then
|
|
||||||
complete -o nospace -C $(command -v tofu) tofu
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Highlight the current autocomplete option
|
# Highlight the current autocomplete option
|
||||||
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
|
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
|
||||||
@ -131,5 +124,3 @@ zstyle :compinstall filename '~/.zshrc'
|
|||||||
#zstyle :compinstall filename '~/.zshrc'
|
#zstyle :compinstall filename '~/.zshrc'
|
||||||
|
|
||||||
#compinit
|
#compinit
|
||||||
|
|
||||||
complete -o nospace -C /home/cli/dotfiles/zsh/.local/bin/tofu tofu
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user