I’m making an attempt to launch a brand new shell and run a command within the new shell, after which go away the shell working interactively. I tried the method over right here [ (bash --rcfile <(echo '. ~/.bashrc; some_command')
]. The explanation for that is that bash 5.x on Macos 13 (safely put in at /usr/native/bin/bash by way of Homebrew 😊) doesn’t execute ~/.bashrc correctly, however working supply ~/.bashrc works when manually executed.
I’ve oh-my-bash put in.
This is my ~/.bash_profile:
# Created by `pipx` on 2023-05-08 20:21:52
export PATH="$PATH:/Customers/jpg/.native/bin"
take a look at -e "${HOME}/.iterm2_shell_integration.bash" && supply "${HOME}/.iterm2_shell_integration.bash" || true
.bash_profile
# Created by `pipx` on 2023-05-08 20:21:52
export PATH="$PATH:/Customers/jpg/.native/bin"
take a look at -e "${HOME}/.iterm2_shell_integration.bash" && supply "${HOME}/.iterm2_shell_integration.bash" || true
➜ ~ cat .bash_profile
➜ ~ cat .bashrc
# Allow the following settings solely in interactive periods
case $- in
*i*) ;;
*) return;;
esac
# Path to your oh-my-bash set up.
export OSH='/Customers/jpg/.oh-my-bash'
# Set identify of the theme to load. Optionally, in the event you set this to "random"
# it's going to load a random theme every time that oh-my-bash is loaded.
OSH_THEME="font"
# Uncomment the next line to make use of case-sensitive completion.
# OMB_CASE_SENSITIVE="true"
# Uncomment the next line to make use of hyphen-insensitive completion. Case
# delicate completion have to be off. _ and - shall be interchangeable.
# OMB_HYPHEN_SENSITIVE="false"
# Uncomment the next line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
# Uncomment the next line to vary how typically to auto-update (in days).
# export UPDATE_OSH_DAYS=13
# Uncomment the next line to disable colours in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the next line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the next line to allow command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the next line to show purple dots while ready for completion.
# COMPLETION_WAITING_DOTS="true"
# Uncomment the next line if you wish to disable marking untracked information
# underneath VCS as soiled. This makes repository standing test for giant repositories
# a lot, a lot sooner.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the next line if you don't need the repository to be thought of soiled
# if there are untracked information.
# SCM_GIT_DISABLE_UNTRACKED_DIRTY="true"
# Uncomment the next line if you wish to utterly ignore the presence
# of untracked information within the repository.
# SCM_GIT_IGNORE_UNTRACKED="true"
# Uncomment the next line if you wish to change the command execution time
# stamp proven within the historical past command output. One of many following values can
# be used to specify the timestamp format.
# * 'mm/dd/yyyy' # mm/dd/yyyy + time
# * 'dd.mm.yyyy' # dd.mm.yyyy + time
# * 'yyyy-mm-dd' # yyyy-mm-dd + time
# * '[mm/dd/yyyy]' # [mm/dd/yyyy] + [time] with colours
# * '[dd.mm.yyyy]' # [dd.mm.yyyy] + [time] with colours
# * '[yyyy-mm-dd]' # [yyyy-mm-dd] + [time] with colours
# If not set, the default worth is 'yyyy-mm-dd'.
# HIST_STAMPS='yyyy-mm-dd'
# Uncomment the next line if you do not need OMB to overwrite the prevailing
# aliases by the default OMB aliases outlined in lib/*.sh
# OMB_DEFAULT_ALIASES="test"
# Would you want to make use of one other {custom} folder than $OSH/{custom}?
# OSH_CUSTOM=/path/to/new-custom-folder
# To disable the makes use of of "sudo" by oh-my-bash, please set "false" to
# this variable. The default conduct for the empty worth is "true".
OMB_USE_SUDO=true
# To allow/disable show of Python virtualenv and condaenv
# OMB_PROMPT_SHOW_PYTHON_VENV=true # allow
# OMB_PROMPT_SHOW_PYTHON_VENV=false # disable
# Which completions would you wish to load? (completions might be present in ~/.oh-my-bash/completions/*)
# Customized completions could also be added to ~/.oh-my-bash/{custom}/completions/
# Instance format: completions=(ssh git bundler gem pip pip3)
# Add correctly, as too many completions decelerate shell startup.
completions=(
git
composer
ssh
)
# Which aliases would you wish to load? (aliases might be present in ~/.oh-my-bash/aliases/*)
# Customized aliases could also be added to ~/.oh-my-bash/{custom}/aliases/
# Instance format: aliases=(vagrant composer git-avh)
# Add correctly, as too many aliases decelerate shell startup.
aliases=(
common
)
# Which plugins would you wish to load? (plugins might be present in ~/.oh-my-bash/plugins/*)
# Customized plugins could also be added to ~/.oh-my-bash/{custom}/plugins/
# Instance format: plugins=(rails git textmate ruby lighthouse)
# Add correctly, as too many plugins decelerate shell startup.
plugins=(
git
bashmarks
)
# Which plugins would you wish to conditionally load? (plugins might be present in ~/.oh-my-bash/plugins/*)
# Customized plugins could also be added to ~/.oh-my-bash/{custom}/plugins/
# Instance format:
# if [ "$DISPLAY" ] || [ "$SSH" ]; then
# plugins+=(tmux-autoattach)
# fi
supply "$OSH"/oh-my-bash.sh
# Consumer configuration
# export MANPATH="/usr/native/man:$MANPATH"
# It's possible you'll must manually set your language setting
# export LANG=en_US.UTF-8
# Most popular editor for native and distant periods
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# ssh
# export SSH_KEY_PATH="~/.ssh/rsa_id"
# Set private aliases, overriding these supplied by oh-my-bash libs,
# plugins, and themes. Aliases might be positioned right here, although oh-my-bash
# customers are inspired to outline aliases inside the OSH_CUSTOM folder.
# For a full checklist of energetic aliases, run `alias`.
#
# Instance aliases
# alias bashconfig="mate ~/.bashrc"
# alias ohmybash="mate ~/.oh-my-bash"
alias lla="ls -la"
alias lar="ls -laR"
alias transfer="mv"
alias ll="ls -l"
alias cls="clear"
alias md="mkdir"
alias copy="cp"
#alias rm="rmdir $*"
#alias rmr="rmdir /s $*"
alias cd..="cd .."
alias cd...="cd ../.."
alias cd....="cd ../../.."
alias lsusb="ioreg -p IOUSB -w0 | sed 's/[^o]*o //; s/@.*$//' | grep -v '^Root.*'"
alias ftp="ncftp"
tabs -4
# Created by `pipx` on 2023-05-08 20:21:52
export PATH="$PATH:/Customers/jpg/.native/bin"