매번 귀찮아 하면서도 누군가에게는 꼭 필요한 일이 되길 하면서 남겨둡니다.
brew tap johanhaleby/kubetail && brew install kubetail
brew install bat
```bash
#### Ubuntu(using most recent .deb packages)
```bash
sudo dpkg -i bat_0.18.3_amd64.deb # adapt version number and architecture
옵션 : --style=plain
batcat 은 line numbers 가 default 로 생성되게 되는데 가끔 그것이 귀찮을때가 있다 그럴때는 아래와 같이 옵션을 추가해주면 됩니다.
기존
bat ~~~~.txt
```bash
- 추가
```bash
bat --style=plain ~~~~.txt
export ZSH=~/.oh-my-zsh
# theme
ZSH_THEME="ys"
# plugin
plugins=(git
zsh-completions
zsh-history-substring-search
zsh-syntax-highlighting
zsh-autosuggestions
autojump
kubectl
kubectx)
# source
source $ZSH/oh-my-zsh.sh
# jenv
export PATH="$HOME/.jenv/bin:$PATH"
eval "$(jenv init -)"
# terraform
autoload -U +X bashcompinit && bashcompinit
complete -o nospace -C /usr/local/bin/terraform terraform
# tfenv
export TFENV_VERSION=$(tfenv --version)
export TF_VERSION=$(terraform --version)
#complete -o nospace -C /opt/homebrew/Cellar/tfenv/$TFENV_VERSION/versions/$TF_VERSION/terraform terraform
tfv(){
terraform validate -var-file=vars/$(terraform workspace show).tfvars
}
tfp(){
terraform plan -var-file=vars/$(terraform workspace show).tfvars
}
tfa(){
terraform apply -var-file=vars/$(terraform workspace show).tfvars
}
tfc(){
terraform console -var-file=vars/$(terraform workspace show).tfvars
}
# ruby init
[[ -d ~/.rbenv ]] && \
export PATH=${HOME}/.rbenv/bin:${PATH} && \
eval "$(rbenv init -)"
# kubectl auto completion
source <(kubectl completion zsh)
# kubectl - k alias
alias k=kubectl
compdef __start_kubectl k
# kube_ps1
source "$(brew --prefix)/opt/kube-ps1/share/kube-ps1.sh"
PS1='$(kube_ps1)'$PS1
# vi to vim
alias vi=vim
# alias to lsd
alias ls='lsd'
alias ll='ls -alhF'
# Terrafrom Alias
alias tf="terraform"
alias tfw="terraform workspace"
# cat to batcat
alias cat="bat --plain"
유익한 글 잘 봤습니다, 감사합니다.