Skip to content

Commit

Permalink
Business Inquiries & .profile / .bashrc update @ /c/Users/Esteban
Browse files Browse the repository at this point in the history
  • Loading branch information
EstebanMqz committed Oct 3, 2024
1 parent 14098fe commit 4eae646
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 35 deletions.
40 changes: 25 additions & 15 deletions $HOME/.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

# Description: Exports Environment Variables & PATHs if necessary, NVM & Node.js with Bash Initalization & Auto-completion.

#CREATE/OPEN (.sh): cd $HOME & code ~/.bashrc
#CREATE/OPEN (.sh): cd $HOME & code ~/.profile


Environment=(VSCode Python311Lib Python11exe Python311Scripts Python312Lib Python12exe Python312Scripts LocalTemp Anaconda3 Anaconda3exe ComposerSetup dotnet Git MATLAB nodejs NVIDIA R422 php bun NET WindowsPowershell PhysX NvDLISR system32)
Environment=(VSCode Python311_Lib Python11_exe Python311_Scripts Python312_Lib Python12_exe Python312_Scripts LocalTemp ComposerSetup dotnet Git MATLAB nodejs NVIDIA R422 php bun NET WindowsPowershell PhysX NvDLISR system32 gh-cli JQ)

directories=(
"/c/Users/Esteban/AppData/Local/Programs/Microsoft VS Code"
Expand All @@ -16,14 +15,13 @@ directories=(
"/c/Users/Esteban/AppData/Local/Programs/Python/Python312/python.exe"
"/c/Users/Esteban/AppData/Local/Programs/Python/Python312/Scripts"
"/c/Users/Esteban/AppData/Local/Temp"
"/c/ProgramData/Anaconda3"
"/c/ProgramData/Anaconda3/Scripts/anaconda-navigator.exe"
"/c/ProgramData/ComposerSetup"
"/c/Program Files/dotnet"
"/c/Program Files/Git/cmd"
"/c/Program Files/MATLAB/R2021a/bin"
"/c/Program Files/nodejs"
"/c/Program Files/NVIDIA Corporation"
"/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR"
"/c/Program Files/NVIDIA Corporation/PhysX/Common"
"/c/Program Files/R/R-4.2.2"
"/c/php-8.2.9"
"c/Users/Esteban/.bun/bin/bun.exe"
Expand All @@ -32,9 +30,11 @@ directories=(
"/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common"
"/c/Program Files/NVIDIA Corporation/NvDLISR"
"/c/Windows/system32"
"/c/Users/Esteban/gh-cli/bin"
"/c/Program Files/System32/jq.exe"
)

# Export PATHs if necessary.
# Existing .bashrc content
for dir in "${directories[@]}"
do
if [[ ":$PATH:" != *":$dir:"* ]]; then
Expand All @@ -50,17 +50,27 @@ for i in "${!Environment[@]}"; do
fi
done

# NVM $HOME initalization in Bash & enable NVM commands Auto Completion.
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
# NVM %USERPROFILE% initalization in Bash & enable NVM commands Auto Completion.
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm

# Node.js/npm & binaries accesible in PATHs.
node_bin_path="$NVM_DIR/versions/node/v21.6.1/bin"
export PATH="$PATH:$node_bin_path"
export PATH="$PATH:$NVM_DIR/versions/node/$(nvm current)/bin"
export PATH="$PATH:$node_bin_path"

# fnm
FNM_PATH="/c/Users/Esteban/.local/share/fnm"
if [ -d "$FNM_PATH" ]; then
export PATH="$FNM_PATH:$PATH"
eval "`fnm env`"
fi

# Ensure npm global packages are in PATH
export PATH="$PATH:$(npm bin -g)"

# Author: Esteban Mรกrquez D. @https://www.github.com/EstebanMqz
# References: https://github.com/EstebanMqz/Registries/blob/main/$HOME/.bashrc
# References: https://github.com/EstebanMqz/Registries/blob/main/$HOME/.profile

# Badge: #[![.profile](https://img.shields.io/badge/~/.profile-000000.svg?style=flat&logo=git&logoColor=orange)](https://github.com/EstebanMqz/Registries/blob/main/$HOME/.profile)[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion.

# Badge: #[![.bashrc](https://img.shields.io/badge/~/.profile-000000.svg?style=flat&logo=git&logoColor=orange)](https://github.com/EstebanMqz/Registries/blob/main/$HOME/.profile)
#Note: This script is a snippet from the .profile file for the Author's personal use, exclusively. Anyone can use it as reference for their own .profile file. in $HOME
36 changes: 23 additions & 13 deletions $HOME/.profile
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#!/bin/bash

# Description: Exports Environment Variables & PATHs if necessary, NVM & Node.js with Bash Initalization & Auto-completion & Source ./bashrc to ./profile. to match unix-like envs.
# Description: Exports Environment Variables & PATHs if necessary, NVM & Node.js with Bash Initalization & Auto-completion. It also sources ./bashrc to ./profile. to match Unix-like envs.

#CREATE/OPEN (.sh): cd $HOME & code ~/.profile
#CREATE/OPEN (.sh): cd $HOME & code ~/.profile


Environment=(VSCode Python311Lib Python11exe Python311Scripts Python312Lib Python12exe Python312Scripts LocalTemp Anaconda3 Anaconda3exe ComposerSetup dotnet Git MATLAB nodejs NVIDIA R422 php bun NET WindowsPowershell PhysX NvDLISR system32)
Environment=(VSCode Python311_Lib Python11_exe Python311_Scripts Python312_Lib Python12_exe Python312_Scripts LocalTemp ComposerSetup dotnet Git MATLAB nodejs NVIDIA R422 php bun NET WindowsPowershell PhysX NvDLISR system32 gh_cli JQ)

directories=(
"/c/Users/Esteban/AppData/Local/Programs/Microsoft VS Code"
Expand All @@ -16,8 +15,6 @@ directories=(
"/c/Users/Esteban/AppData/Local/Programs/Python/Python312/python.exe"
"/c/Users/Esteban/AppData/Local/Programs/Python/Python312/Scripts"
"/c/Users/Esteban/AppData/Local/Temp"
"/c/ProgramData/Anaconda3"
"/c/ProgramData/Anaconda3/Scripts/anaconda-navigator.exe"
"/c/ProgramData/ComposerSetup"
"/c/Program Files/dotnet"
"/c/Program Files/Git/cmd"
Expand All @@ -26,12 +23,14 @@ directories=(
"/c/Program Files/NVIDIA Corporation"
"/c/Program Files/R/R-4.2.2"
"/c/php-8.2.9"
"c/Users/Esteban/.bun/bin/bun.exe"
"/c/Users/Esteban/.bun/bin/bun.exe"
"/c/Windows/Microsoft.NET/Framework64/v4.0.30319/csc.exe"
"/c/Windows/System32/WindowsPowerShell/v1.0"
"/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common"
"/c/Program Files/NVIDIA Corporation/NvDLISR"
"/c/Windows/system32"
"/c/Users/Esteban/gh-cli/bin"
"/c/Program Files/System32/jq.exe"
)

# Export PATHs if necessary.
Expand All @@ -50,15 +49,24 @@ for i in "${!Environment[@]}"; do
fi
done

# NVM $HOME initalization in Bash & enable NVM commands auto completion.
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion"] && \. "$NVM_DIR/bash_completion"
# NVM %USERPROFILE% initalization in Bash & enable NVM commands Auto Completion.
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion"] && \. "$NVM_DIR/bash_completion"

# Node.js/npm & binaries accesible in PATHs.
node_bin_path="$NVM_DIR/versions/node/v21.6.1/bin"
export PATH="$PATH:$node_bin_path"
export PATH="$PATH:$NVM_DIR/versions/node/$(nvm current)/bin"
export PATH="$PATH:$node_bin_path"

#FNM setup binaries accesible in PATHs.
FNM_PATH="/c/Users/Esteban/.local/share/fnm"
if [ -d "$FNM_PATH" ]; then
export PATH="$FNM_PATH:$PATH"
eval "`fnm env`"
fi

# Ensure npm global packages are in PATH
export PATH="$PATH:$(npm bin -g)"

# Source ./bashrc to ./profile.
if [ -n "$BASH_VERSION" ]; then
Expand All @@ -71,3 +79,5 @@ fi
# References: https://github.com/EstebanMqz/Registries/blob/main/$HOME/.profile

# Badge: #[![.profile](https://img.shields.io/badge/~/.profile-000000.svg?style=flat&logo=git&logoColor=orange)](https://github.com/EstebanMqz/Registries/blob/main/$HOME/.profile)

#Note: This script is a snippet from the .profile file for the Author's personal use, exclusively. Anyone can use it as reference for their own .profile file in $HOME
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -380,13 +380,7 @@ WSL enabled OS [Directories](https://learn.microsoft.com/en-us/windows-server/ad

<summary> <div b style="font-family: Arial, sans-serif; color: #c4c8ff; font-size: 18px;"> Business Inquiries:</b> </div> </summary>

[<img width="40px" height="40px" src="https://img.icons8.com/ios/50/0e55b3/resume-website.png" alt="Resume">](https://estebanmqz.github.io/EstebanMqz/html/Resume.html)
[<img width="40px" height="40px" src="https://img.icons8.com/?size=512&amp;id=MR3dZdlA53te&amp;format=png" alt="LinkedIn">](https://www.linkedin.com/in/estebanmqz/)
[<img width="36px" height="36px" src="https://cdn.worldvectorlogo.com/logos/whatsapp-business-bg.svg" alt="Business">](https://tinyurl.com/BusinessNo)
<a href="https://mail.google.com/mail/?view=cm&fs=1&[email protected]" target="Greetings Esteban I reviewed your work, skills and experience and I wish to schedule a Business Meeting with you." style="text-decoration: none;"><img width="60px" height="60px" style="max-width: 100%; max-height: 100%; margin-bottom: -7px;" src="https://www.svgrepo.com/show/530453/mail-reception.svg" alt="Mail">
</a>
[<img width="40px" height="40px" style="max-width: 100%; max-height: 100%;" src="https://cdn3d.iconscout.com/3d/free/thumb/free-github-6343501-5220956.png?f=webp" alt="Github">](https://github.com/EstebanMqz?tab=repositories)
[<img width="40px" height="40px" style="max-width: 100%; max-height: 100%;" src="https://img.icons8.com/color/452/gitlab.png" alt="GitLab">](https://gitlab.com/EstebanMqz)
[<img width="40px" height="40px" src="https://www.svgrepo.com/show/452228/html-5.svg" alt="Resume">](https://estebanmqz.github.io/EstebanMqz/) &nbsp; [<img width="40px" height="40px" src="https://img.icons8.com/?size=512&amp;id=MR3dZdlA53te&amp;format=png" alt="LinkedIn">](https://www.linkedin.com/in/estebanmqz/) &nbsp; [<img width="36px" height="36px" src="https://cdn.worldvectorlogo.com/logos/whatsapp-business-bg.svg" alt="Business">](https://tinyurl.com/Estebans-Phone) &nbsp; <a href="mailto:[email protected]" style="text-decoration: none;"><img width="40px" height="40px" style="max-width: 100%; max-height: 100%;" src="https://img.icons8.com/color/452/gmail-new.png" alt="Gmail"></a> &nbsp; [<img width="40px" height="40px" style="max-width: 100%; max-height: 100%;" src="https://cdn3d.iconscout.com/3d/free/thumb/free-github-6343501-5220956.png?f=webp" alt="Github">](https://github.com/EstebanMqz) &nbsp; [<img width="40px" height="40px" style="max-width: 100%; max-height: 100%;" src="https://img.icons8.com/color/452/gitlab.png" alt="GitLab">](https://gitlab.com/EstebanMqz)

<div align= "left">
<div style="font-family: Arial, sans-serif; color: #c4c8ff; font-size: 15px;">
Expand Down

0 comments on commit 4eae646

Please sign in to comment.