summaryrefslogtreecommitdiffstats
path: root/.bash_profile
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-11-03 23:49:34 +0100
committerAhmed Abdelhalim <[email protected]>2025-11-03 23:49:34 +0100
commit79fa02103c0e1fd71f6a466082e772e1094de9a6 (patch)
tree87fa44e0936a5e3155798c30224d85910db4ac9b /.bash_profile
parentc7ecb7a816de94aa1dd76f1347474412d2456dd5 (diff)
Minor modification to blocks order in file
Diffstat (limited to '.bash_profile')
-rw-r--r--.bash_profile44
1 files changed, 22 insertions, 22 deletions
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
-}