summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-11-04 00:07:50 +0100
committerAhmed Abdelhalim <[email protected]>2025-11-04 00:07:50 +0100
commitddfee246cdf8b15edd1ab64c83884c5ffd263af1 (patch)
treed8c1e064a15fde8d212272616ee947dd864c48d8
parent79fa02103c0e1fd71f6a466082e772e1094de9a6 (diff)
Clean up bash_profile removing old/unused tools
-rw-r--r--.bash_profile53
1 files changed, 1 insertions, 52 deletions
diff --git a/.bash_profile b/.bash_profile
index f7ee1ea..c44f3f2 100644
--- a/.bash_profile
+++ b/.bash_profile
@@ -46,6 +46,7 @@ alias gpgkill='(
gpg-connect-agent /bye
)'
alias cgit='docker run --name cgit -v $(pwd):/srv -p 1313:80 --rm -it cgit'
+alias hi!='fortune | cowsay | lolcat'
# ==== Functions
# get app ID to add to amethyst (example appid /Applications/Spotify.app/)
@@ -83,25 +84,6 @@ if [ -f "$HOME/.nvm/nvm.sh" ]; then
source "$HOME/.nvm/nvm.sh"
fi
-# ==== Vault completeion
-if command -v vault 1>/dev/null 2>&1; then
- complete -C "$(brew --prefix)/bin/vault" vault
-fi
-
-# ==== Generate helm autocomplete stuff when it's not there
-if command -v helm 1>/dev/null 2>&1; then
- if [ ! -f "$(brew --prefix)/etc/bash_completion.d/helm" ]; then
- helm completion bash > "$(brew --prefix)/etc/bash_completion.d/helm"
- fi
-fi
-
-# ==== Generate podman completion script when it's not there
-if command -v podman 1>/dev/null 2>&1; then
- if [ ! -f "$(brew --prefix)/etc/bash_completion.d/podman" ]; then
- podman completion bash > "$(brew --prefix)/etc/bash_completion.d/podman"
- fi
-fi
-
# ==== k8s/ktx/kns completeion
if command -v kubectl 1>/dev/null 2>&1; then
alias k='kubectl'
@@ -117,14 +99,6 @@ if command -v zoxide 1>/dev/null 2>&1; then
eval "$(zoxide init bash --cmd cd)"
fi
-# ==== load all bash completions
-if [ -f "$(brew --prefix)/etc/bash_completion" ]; then
- . "$(brew --prefix)/etc/bash_completion"
-fi
-
-# ==== MISC CowSay
-# fortune | cowsay | lolcat
-
# ==== Work config ===========================================================
# ==== Aliases
alias assume=". assume"
@@ -142,28 +116,3 @@ gitlab_baas_token() {
GITLAB_TOKEN=$(pass mbition/git | grep baas_token | awk '{ print $NF}')
export GITLAB_TOKEN
}
-
-
-# ==== JAVA Config
-if command -v java 1>/dev/null 2>&1; then
- export PATH="$(brew --prefix)/opt/openjdk@11/bin:$PATH"
- export PATH="$(brew --prefix)/opt/gradle@6/bin:$PATH"
-fi
-
-# ==== JFrog CLI config
-if command -v jf 1>/dev/null 2>&1; then
- _jfrog() {
- local cur opts
- COMPREPLY=()
- cur="${COMP_WORDS[COMP_CWORD]}"
- opts=$( "${COMP_WORDS[@]:0:$COMP_CWORD}" --generate-bash-completion )
- mapfile -t COMPREPLY < <(compgen -W "${opts}" -- "${cur}")
- }
- complete -F _jfrog -o default jfrog
- complete -F _jfrog -o default jf
-fi
-
-# ==== CLang and Sphinx doc config
-if command -v clang-format 1>/dev/null 2>&1; then
- export PATH="$(brew --prefix)/opt/sphinx-doc/bin:$PATH"
-fi