feat: Update files
This commit is contained in:
29
files/zshrc
29
files/zshrc
@@ -85,7 +85,7 @@ ZSH_THEME="powerlevel10k/powerlevel10k"
|
||||
# Add wisely, as too many plugins slow down shell startup.
|
||||
plugins=(
|
||||
ansible
|
||||
asdf
|
||||
# asdf
|
||||
aws
|
||||
dirhistory
|
||||
docker
|
||||
@@ -174,19 +174,37 @@ function verip {
|
||||
curl -s https://ipinfo.io | jq
|
||||
}
|
||||
|
||||
# Añado mis exportaciones
|
||||
## Para generar contraseñas seguras
|
||||
pass() {
|
||||
local len=${1:-30}
|
||||
local num=${2:-5}
|
||||
pwgen -s -y -c -n -1 "$len" "$num"
|
||||
}
|
||||
|
||||
# Añado mis exports
|
||||
|
||||
## Go
|
||||
export GOPATH=$HOME/Documents/projectes/go
|
||||
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
|
||||
|
||||
|
||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||
|
||||
autoload -U +X bashcompinit && bashcompinit
|
||||
#autoload -U +X bashcompinit && bashcompinit
|
||||
|
||||
complete -o nospace -C /usr/bin/terraform terraform
|
||||
## asdf y relacionados
|
||||
complete -o nospace -C /home/v/.asdf/shims/terraform terraform
|
||||
export PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:$PATH"
|
||||
fpath=(${ASDF_DATA_DIR:-$HOME/.asdf}/completions $fpath)
|
||||
autoload -Uz compinit && compinit
|
||||
#. $HOME/.asdf/asdf.sh
|
||||
#if [ -f "$HOME/.asdf/completions/asdf.bash" ]; then
|
||||
# . $HOME/.asdf/completions/asdf.bash
|
||||
#fi
|
||||
|
||||
|
||||
|
||||
## kubectl
|
||||
complete -o default -F __start_kubectl k
|
||||
[[ $commands[kubectl] ]] && source <(kubectl completion zsh)
|
||||
|
||||
@@ -195,3 +213,4 @@ if [ -f '/home/v/google-cloud-sdk/path.zsh.inc' ]; then . '/home/v/google-cloud-
|
||||
|
||||
# The next line enables shell command completion for gcloud.
|
||||
if [ -f '/home/v/google-cloud-sdk/completion.zsh.inc' ]; then . '/home/v/google-cloud-sdk/completion.zsh.inc'; fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user