Last active
June 7, 2024 19:29
-
-
Save Kyborg2011/ac84958b227999bbc08f1b23aa26089a to your computer and use it in GitHub Desktop.
My '.bash_profile/.zshrc' settings file on MacOS:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# There was a warning about LANG, when used 'pipenv', so I have added it to conf: | |
export LANG="en_US.UTF-8" | |
export LC_ALL="en_US.UTF-8" | |
export LC_CTYPE="en_US.UTF-8" | |
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. | |
# Initialization code that may require console input (password prompts, [y/n] | |
# confirmations, etc.) must go above this block; everything else may go below. | |
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
fi | |
############################################################################### | |
############################################################################### | |
# Innitial .zshrc — main aliases and $PATH fixes: | |
############################################################################### | |
############################################################################### | |
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-22.jdk/Contents/Home | |
export PATH_TO_JAVAFX=/Users/air/development/utils/javafx-sdk-12/lib | |
export PATH="/usr/local/opt/openssl/bin:$PATH" | |
export PATH="/usr/local/opt/sqlite/bin:$PATH" | |
# After "brew install ntfs-3g" | |
export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH" | |
# MacPorts Installer addition on 2019-06-01_at_07:43:53: adding an appropriate PATH variable for use with MacPorts. | |
export PATH="/opt/local/bin:/opt/local/sbin:$PATH" | |
# Finished adapting your PATH environment variable for use with MacPorts.s | |
# For compiling apps", using openssl: | |
export LDFLAGS="-L/usr/local/opt/openssl/lib" | |
export CPPFLAGS="-I/usr/local/opt/openssl/include" | |
# For using Android SDK (adb, fastboot tool, in the most cases) from any folder: | |
export ANDROID_HOME="/Users/$USER/Library/Android/sdk" | |
export PATH="${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools" | |
# Include (to some commands, such as: mv, cp, etc...) files, starting with '.' (dot): | |
# Using zsh you need to use 'setopt' command instead of 'shopt' (in obvious bash) | |
# Read docs (about setopt): http://zsh.sourceforge.net/Doc/Release/Expansion.html#ksh_002dlike-Glob-Operators | |
# shopt -s dotglob | |
setopt kshglob | |
# Some utils for building bitcoin core from sources: | |
export PKG_CONFIG_PATH="/usr/local/opt/qt/lib/pkgconfig" | |
export LDFLAGS="-L/usr/local/opt/qt/lib" | |
export CPPFLAGS="-I/usr/local/opt/qt/include" | |
# For Hyper terminal app: enable color schemas: | |
# export CLICOLOR=1 | |
# Telegram Open Network -- utils: | |
export TON_CRYPTO_HOME="/Users/$USER/development/fullnode-build/crypto" | |
export FIFTPATH="/Users/$USER/development/ton/crypto/fift/lib:/Users/$USER/development/ton/crypto/smartcont" | |
export PATH="${PATH}:$TON_CRYPTO_HOME:$FIFTPATH" | |
export BETTER_EXCEPTIONS=1 | |
# Aliases for compiled Telegram Open Network Lite Client -- testnode: | |
alias func="/Users/$USER/development/fullnode-build/crypto/func" | |
alias fift="/Users/$USER/development/fullnode-build/crypto/fift" | |
alias lite-client="/Users/$USER/development/fullnode-build/lite-client/lite-client -C /Users/$USER/development/fullnode-build/config/global-config.json" | |
alias validator-engine="/Users/$USER/development/fullnode-build/validator-engine/validator-engine" | |
alias validator-engine-console="/Users/$USER/development/fullnode-build/validator-engine/validator-engine-console" | |
# Aliases for compiled Bitcoin: | |
alias bitcoin-cli='~/apps/bitcoin/src/bitcoin-cli' | |
alias bitcoind='~/apps/bitcoin/src/bitcoind' | |
# Aliases for compiled Polkadot: | |
alias polkadot='~/apps/polkadot/target/release/polkadot' | |
alias polkadot-dot='~/apps/polkadot/target/release/polkadot --chain=polkadot' | |
alias polkadot-kusama='~/apps/polkadot/target/release/polkadot --chain=kusama' | |
alias polkadot-westend='~/apps/polkadot/target/release/polkadot --chain=westend' | |
alias polkadot-dev='~/apps/polkadot/target/release/polkadot --chain=dev' | |
export PATH=/Applications/monero-wallet-gui.app/Contents/MacOS:$PATH | |
############################################################################### | |
############################################################################### | |
# Ohmyzsh related config: | |
############################################################################### | |
############################################################################### | |
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/Users/air/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes | |
#ZSH_THEME="agnoster" | |
ZSH_THEME="powerlevel10k/powerlevel10k" | |
# Set list of themes to pick from when loading at random | |
# Setting this variable when ZSH_THEME=random will cause zsh to load | |
# a theme from this variable instead of looking in $ZSH/themes/ | |
# If set to an empty array, this variable will have no effect. | |
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) | |
# Uncomment the following line to use case-sensitive completion. | |
# CASE_SENSITIVE="true" | |
# Uncomment the following line to use hyphen-insensitive completion. | |
# Case-sensitive completion must be off. _ and - will be interchangeable. | |
# HYPHEN_INSENSITIVE="true" | |
# Uncomment the following line to disable bi-weekly auto-update checks. | |
# DISABLE_AUTO_UPDATE="true" | |
# Uncomment the following line to automatically update without prompting. | |
# DISABLE_UPDATE_PROMPT="true" | |
# Uncomment the following line to change how often to auto-update (in days). | |
# export UPDATE_ZSH_DAYS=13 | |
# Uncomment the following line if pasting URLs and other text is messed up. | |
# DISABLE_MAGIC_FUNCTIONS=true | |
# Uncomment the following line to disable colors in ls. | |
# DISABLE_LS_COLORS="true" | |
# Uncomment the following line to disable auto-setting terminal title. | |
# DISABLE_AUTO_TITLE="true" | |
# Uncomment the following line to enable command auto-correction. | |
# ENABLE_CORRECTION="true" | |
# Uncomment the following line to display red dots whilst waiting for completion. | |
# COMPLETION_WAITING_DOTS="true" | |
# Uncomment the following line if you want to disable marking untracked files | |
# under VCS as dirty. This makes repository status check for large repositories | |
# much, much faster. | |
# DISABLE_UNTRACKED_FILES_DIRTY="true" | |
# Uncomment the following line if you want to change the command execution time | |
# stamp shown in the history command output. | |
# You can set one of the optional three formats: | |
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" | |
# or set a custom format using the strftime function format specifications, | |
# see 'man strftime' for details. | |
# HIST_STAMPS="mm/dd/yyyy" | |
# Would you like to use another custom folder than $ZSH/custom? | |
# ZSH_CUSTOM=/path/to/new-custom-folder | |
ZSH_DISABLE_COMPFIX=true | |
# Which plugins would you like to load? | |
# Standard plugins can be found in $ZSH/plugins/ | |
# Custom plugins may be added to $ZSH_CUSTOM/plugins/ | |
# Example format: plugins=(rails git textmate ruby lighthouse) | |
# Add wisely, as too many plugins slow down shell startup. | |
plugins=( | |
git | |
bundler | |
dotenv | |
macos | |
colorize | |
cp | |
docker | |
python | |
golang | |
brew | |
fast-syntax-highlighting | |
) | |
source $ZSH/oh-my-zsh.sh | |
# User configuration | |
# export MANPATH="/usr/local/man:$MANPATH" | |
# You may need to manually set your language environment | |
# export LANG=en_US.UTF-8 | |
# Preferred editor for local and remote sessions | |
if [[ -n $SSH_CONNECTION ]]; then | |
export EDITOR='vim' | |
else | |
export EDITOR='mvim' | |
fi | |
# Compilation flags | |
# export ARCHFLAGS="-arch x86_64" | |
# Set personal aliases, overriding those provided by oh-my-zsh libs, | |
# plugins, and themes. Aliases can be placed here, though oh-my-zsh | |
# users are encouraged to define aliases within the ZSH_CUSTOM folder. | |
# For a full list of active aliases, run `alias`. | |
# | |
# Example aliases | |
# alias zshconfig="mate ~/.zshrc" | |
# alias ohmyzsh="mate ~/.oh-my-zsh" | |
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. | |
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh | |
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH" | |
# Created by `pipx` on 2021-06-13 16:35:13 | |
export PATH="$PATH:/Users/air/.local/bin" | |
# Created by `pipx` on 2021-06-13 16:35:15 | |
export PATH="$PATH:/Users/air/Library/Python/3.9/bin" | |
# Android NDK - latest | |
alias ndk-build="~/Library/Android/sdk/ndk/27.0.11902837/ndk-build" | |
# Various tools: | |
# cuetag.sh: | |
alias cuetag="~/apps/miscellania/cuetag.sh" | |
# Needed for swiftenv (brew install kylef/formulae/swiftenv) | |
if which swiftenv > /dev/null; then eval "$(swiftenv init -)"; fi | |
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! | |
export SDKMAN_DIR="$HOME/.sdkman" | |
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh" | |
[ -f "/Users/air/.ghcup/env" ] && source "/Users/air/.ghcup/env" # ghcup-env | |
# Created by `pipx` on 2022-07-25 21:18:31 | |
export PATH="$PATH:/Users/air/Library/Python/3.10/bin" | |
export PATH="$PATH:/Users/air/.foundry/bin" | |
# Hledger main ledger conf | |
export LEDGER_FILE="/Users/air/Dropbox/09 Business/06 Ledger/main.journal" | |
# Ruby installed using brew: | |
export PATH="/usr/local/opt/ruby/bin:$PATH" | |
export LDFLAGS="-L/usr/local/opt/ruby/lib" | |
export CPPFLAGS="-I/usr/local/opt/ruby/include" | |
export PKG_CONFIG_PATH="/usr/local/opt/ruby/lib/pkgconfig" | |
# Restore Mac OS default "chmod": | |
alias chmod="/bin/chmod" | |
export _JAVA_OPTIONS="" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment