Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e546cff2b2 | |||
| 9bef22a8c1 | |||
| 07497cb3da | |||
| 253448067f | |||
| 5cc07d7b3d | |||
| e3586294be | |||
| abf455a349 | |||
| 70b44df5f2 | |||
| c78e150020 |
@@ -287,12 +287,14 @@ Cualquier duda sobre la instalación y configuración del tema, la [documentaci
|
|||||||
## Plugins
|
## Plugins
|
||||||
Los plugins que utilizo son los siguientes:
|
Los plugins que utilizo son los siguientes:
|
||||||
- [ansible](https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/ansible)
|
- [ansible](https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/ansible)
|
||||||
|
- [aws](https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/aws)
|
||||||
- [dirhistory](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/dirhistory)
|
- [dirhistory](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/dirhistory)
|
||||||
- [docker](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/docker)
|
- [docker](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/docker)
|
||||||
- [docker-compose](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/docker-compose)
|
- [docker-compose](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/docker-compose)
|
||||||
- [emoji](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/emoji)
|
- [emoji](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/emoji)
|
||||||
- [encode64](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/encode64)
|
- [encode64](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/encode64)
|
||||||
- [git](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git)
|
- [git](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git)
|
||||||
|
- [golang](https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/golang)
|
||||||
- [helm](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/helm)
|
- [helm](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/helm)
|
||||||
- [history](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/history)
|
- [history](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/history)
|
||||||
- [history-substring-search](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/history-substring-search)
|
- [history-substring-search](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/history-substring-search)
|
||||||
|
|||||||
1640
files/p10k.zsh
Normal file
1640
files/p10k.zsh
Normal file
File diff suppressed because it is too large
Load Diff
33
files/zshrc
33
files/zshrc
@@ -1,10 +1,16 @@
|
|||||||
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
||||||
# Initialization code that may require console input (password prompts, [y/n]
|
# Initialization code that may require console input (password prompts, [y/n]
|
||||||
# confirmations, etc.) must go above this block; everything else may go below.
|
# confirmations, etc.) must go above this block; everything else may go below.
|
||||||
|
|
||||||
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# starship
|
||||||
|
|
||||||
|
eval "$(starship init zsh)"
|
||||||
|
|
||||||
|
|
||||||
# If you come from bash you might have to change your $PATH.
|
# If you come from bash you might have to change your $PATH.
|
||||||
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||||
|
|
||||||
@@ -79,12 +85,16 @@ ZSH_THEME="powerlevel10k/powerlevel10k"
|
|||||||
# Add wisely, as too many plugins slow down shell startup.
|
# Add wisely, as too many plugins slow down shell startup.
|
||||||
plugins=(
|
plugins=(
|
||||||
ansible
|
ansible
|
||||||
|
asdf
|
||||||
|
aws
|
||||||
dirhistory
|
dirhistory
|
||||||
docker
|
docker
|
||||||
docker-compose
|
docker-compose
|
||||||
emoji
|
emoji
|
||||||
encode64
|
encode64
|
||||||
|
gcloud
|
||||||
git
|
git
|
||||||
|
golang
|
||||||
helm
|
helm
|
||||||
history
|
history
|
||||||
history-substring-search
|
history-substring-search
|
||||||
@@ -92,8 +102,11 @@ plugins=(
|
|||||||
jump
|
jump
|
||||||
kubectl
|
kubectl
|
||||||
nmap
|
nmap
|
||||||
|
python
|
||||||
sudo
|
sudo
|
||||||
terraform
|
terraform
|
||||||
|
vagrant
|
||||||
|
vagrant-prompt
|
||||||
zsh-autosuggestions
|
zsh-autosuggestions
|
||||||
zsh-syntax-highlighting
|
zsh-syntax-highlighting
|
||||||
z
|
z
|
||||||
@@ -145,8 +158,11 @@ function gglog {
|
|||||||
|
|
||||||
## docker
|
## docker
|
||||||
alias d="docker"
|
alias d="docker"
|
||||||
|
### Añadir color con tuberia
|
||||||
|
alias dcolor="docker-color-output"
|
||||||
|
|
||||||
## kubectl
|
## kubectl
|
||||||
|
### Añadir color a todo CLI
|
||||||
alias kubectl="kubecolor"
|
alias kubectl="kubecolor"
|
||||||
|
|
||||||
## Copiar y pegar desde la terminal
|
## Copiar y pegar desde la terminal
|
||||||
@@ -158,11 +174,24 @@ function verip {
|
|||||||
curl -s https://ipinfo.io | jq
|
curl -s https://ipinfo.io | jq
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# Añado mis exportaciones
|
# Añado mis exportaciones
|
||||||
export GOPATH=$HOME/go
|
## Go
|
||||||
|
export GOPATH=$HOME/Documents/projectes/go
|
||||||
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
|
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
|
||||||
|
|
||||||
|
|
||||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||||
|
|
||||||
|
autoload -U +X bashcompinit && bashcompinit
|
||||||
|
|
||||||
|
complete -o nospace -C /usr/bin/terraform terraform
|
||||||
|
|
||||||
|
complete -o default -F __start_kubectl k
|
||||||
|
[[ $commands[kubectl] ]] && source <(kubectl completion zsh)
|
||||||
|
|
||||||
|
# The next line updates PATH for the Google Cloud SDK.
|
||||||
|
if [ -f '/home/v/google-cloud-sdk/path.zsh.inc' ]; then . '/home/v/google-cloud-sdk/path.zsh.inc'; fi
|
||||||
|
|
||||||
|
# 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