Skip to content

Commit

Permalink
add extra packages
Browse files Browse the repository at this point in the history
  • Loading branch information
pgaijin66 committed May 2, 2024
1 parent 519d5ee commit 04c16a6
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 44 deletions.
87 changes: 52 additions & 35 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,41 +48,58 @@ function install_python {
# Function to install various packages
function install_packages {
runcmd brew install bat \
gcc \
ripgrep \
pipenv \
black \
neovim \
fzf \
go-task \
tree \
nvm \
go \
openjdk \
tfenv \
helm \
helmfile \
kubectx \
kubectl \
sops \
docker \
docker-compose \
colima \
docker-credential-helper \
aylei/tap/kubectl-debug \
git-delta \
git-absorb \
shellcheck \
awscli \
hadolint \
aquasecurity/trivy/trivy \
figlet \
lolcat \
mkcert \
nmap \
ansible \
derailed/k9s/k9s

gcc \
ripgrep \
pipenv \
black \
neovim \
fzf \
go-task \
tree \
nvm \
go \
openjdk \
tfenv \
helm \
helmfile \
kubectx \
kubectl \
sops \
docker \
docker-compose \
colima \
docker-credential-helper \
aylei/tap/kubectl-debug \
git-delta \
git-absorb \
shellcheck \
awscli \
hadolint \
aquasecurity/trivy/trivy \
figlet \
lolcat \
mkcert \
nmap \
ansible \
derailed/k9s/k9s \
snappy \
awscurl \
jid \
watch \
wget \
telnet \
terraformer \
tfsec \
tree-sitter \
terraform-docs \
bats-core \
eksup \
kubent \
mtr \
nettle \
tcpdump \
unbound \
velero
}

# Function to install Terraform
Expand Down
8 changes: 6 additions & 2 deletions git/gitconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
[user]
signingkey = 2F1EE7CDC451C403
name = Prabesh Thapa
email = [email protected]

[includeIf "gitdir:~/work"]
path = ~/work/.gitconfig

[commit]
gpgsign = true
gpgsign = false
[init]
defaultBranch = main
[interactive]
Expand Down Expand Up @@ -91,3 +94,4 @@
autocorrect = 10
[credential]
helper = osxkeychain

2 changes: 1 addition & 1 deletion nvim/lazy-lock.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"catppuccin": { "branch": "main", "commit": "5e36ca599f4aa41bdd87fbf2c5aae4397ac55074" },
"lazy.nvim": { "branch": "main", "commit": "96584866b9c5e998cbae300594d0ccfd0c464627" },
"lazy.nvim": { "branch": "main", "commit": "28126922c9b54e35a192ac415788f202c3944c9f" },
"nvim-tree.lua": { "branch": "master", "commit": "b8c3a23e76f861d5f0ff3f6714b9b56388984d0b" },
"nvim-web-devicons": { "branch": "master", "commit": "db0c864375c198cacc171ff373e76bfce2a85045" },
"plenary.nvim": { "branch": "master", "commit": "55d9fe89e33efd26f532ef20223e5f9430c8b0c0" },
Expand Down
46 changes: 40 additions & 6 deletions zsh/zshrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export GOROOT=/opt/homebrew/bin/go

export PATH=$HOME/bin:$GOROOT/bin:$PATH

export ZSH="$HOME/.oh-my-zsh"

ZSH_THEME="robbyrussell"
Expand Down Expand Up @@ -82,16 +78,45 @@ alias ruok='
'

# Kubernetes
alias k='kubectl'
alias kd='kubectl get deployment'
alias kn='kubectl get namaspace'
alias ks='kubectl get service'
alias ksec='kubectl get secret'
alias kp='kubectl port-forward'
alias kdel='kubectl delete'

alias kg="k get"
alias kgpo="kg po" or alias kgpo="kg pods"
alias kgno="kg no" or alias kgno="kg nodes"
alias kd="k describe"
alias kaf="k apply -f"
alias kdf="k delete -f"
alias kgn='kubectl get nodes'
alias kgp='kubectl get pods'
alias kgpa='kubectl get pods -- all-namespaces'
alias kgs='kubectl get services'
alias kgd='kubectl get deployments'
alias kd= 'kubectl delete'
alias kdp='kubectl delete pod'
alias kds='kubectl delete service'
alias kdd='kubectl delete deployment'
alias kdn='kubectl delete namespace'
alias kn='kctl config set-context --current --namespace'
alias kgel='kctl get events --sort-by=.lastTimestamp'
alias kgec='kctl get events --sort-by=.metadata.creationTimestamp'
function kger() { kctl get events --sort-by=.lastTimestamp --field-selector involvedObject.name="$@" }
alias kgworld='kctl get $(kubectl api-resources --verbs=list --namespaced -o name | paste -sd ",")'
alias kgnr="k get nodes --no-headers | awk '{print \$1}' | xargs -I {} sh -c 'echo {} ; kubectl describe node {} | grep Allocated -A 5 | grep -ve Event -ve Allocated -ve percent -ve -- ; echo '"
alias kdebug="kctl -n default run debug-$USER --rm -it --tty --image leodotcloud/swiss-army-knife:v0.12 --image-pull-policy=IfNotPresent -- bash"
function kgpc() { kctl get pod -o jsonpath="{.spec.containers[*].name}" "$@" && echo "" }
alias kping='kctl run httping -it --image bretfisher/httping --image-pull-policy=IfNotPresent --rm=true --'
function kyaml() { kubectl get "$@" -o yaml | kubectl-neat }
alias krmfailed='kctl delete pods --field-selector=status.phase=Failed'

alias kx='kubectx'

# FZF
alias sd="cd ~ && \$(find Documents src Desktop Downloads -type d -maxdepth 4 | fzf)"
alias sd="cd ~ && \$(find Documents work Desktop Downloads -type d -maxdepth 4 | fzf)"

# Key bindings
bind '^f' 'sd' # Open fzf finder quicker
Expand All @@ -108,3 +133,12 @@ export GH_TOKEN=""
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion

export CLUSTER_LOGIN_SSO=true

source <(alias s=switch)

source <(compdef _switcher switch)

# Pull in env vars necessary for Capsule development
source /Users/pthapa/.config/cia/.cia_envvars

0 comments on commit 04c16a6

Please sign in to comment.