From 79fa02103c0e1fd71f6a466082e772e1094de9a6 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Mon, 3 Nov 2025 23:49:34 +0100 Subject: Minor modification to blocks order in file --- .bash_profile | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to '.bash_profile') diff --git a/.bash_profile b/.bash_profile index dfdd811..f7ee1ea 100644 --- a/.bash_profile +++ b/.bash_profile @@ -17,7 +17,7 @@ export HISTCONTROL=ignoredups:erasedups export EDITOR='vim' export TERM="xterm-256color" export GREP_OPTIONS="--color=auto" -export PS1="[a14m] \W \$ " +export PS1="[\u]: \W \$ " export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 GPG_TTY=$(tty) @@ -32,6 +32,8 @@ export USE_GKE_GCLOUD_AUTH_PLUGIN=True shopt -s checkwinsize # check the window size after each command and, if necessary, update LINES/COLUMNS # ==== Aliases +alias spc="cd ~/Work/Space/" +alias mb="cd ~/Work/MBition/" alias la='ls -a' alias dirs="dirs -v" alias srv="python3 -m http.server" # start simple server @@ -56,12 +58,6 @@ homebrew_token() { export HOMEBREW_GITHUB_API_TOKEN } -# ==== Aliased Directories -alias rc="cd ~/.rc" -alias spc="cd ~/Work/Space/" -alias mb="cd ~/Work/MBition/" -alias obs="cd ~/Library/Mobile\ Documents/iCloud~md~obsidian/Documents/Vault/MBition/" - if command -v neomutt 1>/dev/null 2>&1; then # Fixes the pinentry-tty error https://github.com/neomutt/neomutt/issues/1014 mutt() { @@ -130,7 +126,25 @@ fi # fortune | cowsay | lolcat # ==== Work config =========================================================== -# ==== JAVA config +# ==== Aliases +alias assume=". assume" + +# ==== Functions +gitlab_token() { + GITLAB_TOKEN=$(pass mbition/git | grep token | awk '{ print $NF}') + export GITLAB_TOKEN +} +gitlab_su_token() { + GITLAB_TOKEN=$(pass mbition/git | grep su_token | awk '{ print $NF}') + export GITLAB_TOKEN +} +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" @@ -153,17 +167,3 @@ fi if command -v clang-format 1>/dev/null 2>&1; then export PATH="$(brew --prefix)/opt/sphinx-doc/bin:$PATH" fi - -alias assume=". assume" -gitlab_token() { - GITLAB_TOKEN=$(pass mbition/git | grep token | awk '{ print $NF}') - export GITLAB_TOKEN -} -gitlab_su_token() { - GITLAB_TOKEN=$(pass mbition/git | grep su_token | awk '{ print $NF}') - export GITLAB_TOKEN -} -gitlab_baas_token() { - GITLAB_TOKEN=$(pass mbition/git | grep baas_token | awk '{ print $NF}') - export GITLAB_TOKEN -} -- cgit v1.2.3