Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
moukoublen committed May 10, 2024
1 parent 5c0c10b commit cf8c38f
Show file tree
Hide file tree
Showing 12 changed files with 50 additions and 28 deletions.
8 changes: 4 additions & 4 deletions bin/UpdateOS
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ fi
"${DOTFILES_PATH}"/scripts/install-fzf
"${DOTFILES_PATH}"/scripts/install-delta
"${DOTFILES_PATH}"/scripts/install-elastic-package
# "${DOTFILES_PATH}"/scripts/install-helm
# "${DOTFILES_PATH}"/scripts/install-k9s
# "${DOTFILES_PATH}"/scripts/install-kind
# "${DOTFILES_PATH}"/scripts/install-minikube
"${DOTFILES_PATH}"/scripts/install-helm
"${DOTFILES_PATH}"/scripts/install-k9s
"${DOTFILES_PATH}"/scripts/install-kind
"${DOTFILES_PATH}"/scripts/install-minikube
# "${DOTFILES_PATH}"/scripts/install-dbeaver
2 changes: 1 addition & 1 deletion config/sublime/Preferences.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"draw_white_space": ["all_tabs", "selection_all", "trailing"],
//"font_face": "Monaspace Radon",
"font_face": "JetBrains Mono",
"font_size": 20,
"font_size": 10,
"mini_diff": "auto",
"show_encoding": true,
"translate_tabs_to_spaces": true,
Expand Down
17 changes: 0 additions & 17 deletions lib/50-kube.bash
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,3 @@ if [[ -x /usr/local/bin/kubectl ]]; then
alias k=kubectl
complete -F __start_kubectl k
fi

#if command -v minikube 1>/dev/null 2>&1; then
if [[ -x /usr/local/bin/minikube ]]; then
source <(minikube completion bash)
fi

if [[ -x /usr/local/bin/helm ]]; then
source <(helm completion bash)
fi

if [[ -x /usr/local/bin/kind ]]; then
source <(kind completion bash)
fi

if [[ -x /usr/local/bin/k9s ]]; then
source <(k9s completion bash)
fi
7 changes: 4 additions & 3 deletions scripts/install-bat
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ __install_exec() {
#install binary
sudo cp "${TMP_DIR}"/bat "${BIN_DIR}"/bat

# install autocomplete
sudo mkdir -p /usr/local/share/bash-completion/completions
sudo cp "${TMP_DIR}"/autocomplete/bat.bash /usr/local/share/bash-completion/completions/bat.bash
# install bash completion
if [[ -d "${HOME}"/.bashrc.d/ ]]; then
cat "${TMP_DIR}"/autocomplete/bat.bash > "${HOME}"/.bashrc.d/bat-completion.bash
fi
}
export -f __install_exec

Expand Down
2 changes: 1 addition & 1 deletion scripts/install-delta
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ __install_exec() {

# install bash completion
if [[ -d "${HOME}"/.bashrc.d/ ]]; then
"${BIN_DIR}"/delta --generate-completion bash > ~/.bashrc.d/delta-completion.bash
"${BIN_DIR}"/delta --generate-completion bash > "${HOME}"/.bashrc.d/delta-completion.bash
fi
}
export -f __install_exec
Expand Down
2 changes: 1 addition & 1 deletion scripts/install-elastic-package
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ __install_exec() {

# install bash autocompletion
if [[ -d "${HOME}"/.bashrc.d/ ]]; then
"${BIN_DIR}"/elastic-package completion bash > ~/.bashrc.d/elastic-package-completion.bash
"${BIN_DIR}"/elastic-package completion bash > "${HOME}"/.bashrc.d/elastic-package-completion.bash
fi
}
export -f __install_exec
Expand Down
2 changes: 1 addition & 1 deletion scripts/install-fzf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ __install_exec() {

# install bash integration / completion
if [[ -d "${HOME}"/.bashrc.d/ ]]; then
"${BIN_DIR}"/fzf --bash > ~/.bashrc.d/fzf-completion.bash
"${BIN_DIR}"/fzf --bash > "${HOME}"/.bashrc.d/fzf-completion.bash
fi
}
export -f __install_exec
Expand Down
8 changes: 8 additions & 0 deletions scripts/install-helm
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,17 @@ __install_exec() {

#install binary
sudo cp "${TMP_DIR}"/helm "${BIN_DIR}"/helm

# install bash completion
if [[ -d "${HOME}"/.bashrc.d/ ]]; then
"${BIN_DIR}"/helm completion bash > "${HOME}"/.bashrc.d/helm-completion.bash
fi
}
export -f __install_exec

# if [[ -x /usr/local/bin/helm ]]; then
# source <(helm completion bash)
# fi

install-from-github \
--name "helm" \
Expand Down
8 changes: 8 additions & 0 deletions scripts/install-k9s
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,17 @@ __install_exec() {

tar -xzf "${DOWNLOADED_FULL_PATH}" --directory "${TMP_DIR}"
sudo cp "${TMP_DIR}"/k9s "${BIN_DIR}"/k9s

# install bash completion
if [[ -d "${HOME}"/.bashrc.d/ ]]; then
"${BIN_DIR}"/k9s completion bash > "${HOME}"/.bashrc.d/k9s-completion.bash
fi
}
export -f __install_exec

# if [[ -x /usr/local/bin/k9s ]]; then
# source <(k9s completion bash)
# fi

install-from-github \
--name "k9s" \
Expand Down
8 changes: 8 additions & 0 deletions scripts/install-kind
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,17 @@ __install_exec() {
#install binary
sudo cp "${TMP_DIR}"/kind-linux-amd64 "${BIN_DIR}"/kind
sudo chmod +x "${BIN_DIR}"/kind

# install bash completion
if [[ -d "${HOME}"/.bashrc.d/ ]]; then
"${BIN_DIR}"/kind completion bash > "${HOME}"/.bashrc.d/kind-completion.bash
fi
}
export -f __install_exec

# if [[ -x /usr/local/bin/kind ]]; then
# source <(kind completion bash)
# fi

install-from-github \
--name "kind" \
Expand Down
9 changes: 9 additions & 0 deletions scripts/install-minikube
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,18 @@ __install_exec() {

#install binary
sudo cp "${TMP_DIR}"/minikube-linux-amd64 "${BIN_DIR}"/minikube

# install bash completion
if [[ -d "${HOME}"/.bashrc.d/ ]]; then
"${BIN_DIR}"/minikube completion bash > "${HOME}"/.bashrc.d/minikube-completion.bash
fi
}
export -f __install_exec

# #if command -v minikube 1>/dev/null 2>&1; then
# if [[ -x /usr/local/bin/minikube ]]; then
# source <(minikube completion bash)
# fi

install-from-github \
--name "minikube" \
Expand Down
5 changes: 5 additions & 0 deletions scripts/install-starship
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ __install_exec() {
TMP_DIR="$(dirname "${DOWNLOADED_FULL_PATH}")"
tar -xzf "${DOWNLOADED_FULL_PATH}" --directory "${TMP_DIR}"
sudo cp "${TMP_DIR}"/starship "${BIN_DIR}"/starship

# install bash completion
if [[ -d "${HOME}"/.bashrc.d/ ]]; then
"${BIN_DIR}"/starship completions bash > "${HOME}"/.bashrc.d/starship-completion.bash
fi
}
export -f __install_exec

Expand Down

0 comments on commit cf8c38f

Please sign in to comment.