How to make Oh-My-Bash compatible with Tabby shell working directory reporting? #730
-
|
Hi, I’m using Tabby ( Specifically, I’m using: export PS1="$PS1\[\e]1337;CurrentDir="'$(pwd)\a\]'This works correctly with a Could you please advise how to configure or override the Oh-My-Bash prompt configuration so that it remains compliant with Tabby’s requirement for reporting the current directory? Thank you very much for your help in advance. I look forward to hearing from you. .bash_profile# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs.bashrc# Enable the subsequent settings only in interactive sessions
case $- in
*i*) ;;
*) return;;
esac
# Path to your oh-my-bash installation.
export OSH='/home/admin/.oh-my-bash'
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-bash is loaded.
OSH_THEME="powerline"
# To disable the uses of "sudo" by oh-my-bash, please set "false" to
# this variable. The default behavior for the empty value is "true".
OMB_USE_SUDO=true
# Which completions would you like to load? (completions can be found in ~/.oh-my-bash/completions/*)
# Custom completions may be added to ~/.oh-my-bash/custom/completions/
# Example format: completions=(ssh git bundler gem pip pip3)
# Add wisely, as too many completions slow down shell startup.
completions=(
git
composer
ssh
)
# Which aliases would you like to load? (aliases can be found in ~/.oh-my-bash/aliases/*)
# Custom aliases may be added to ~/.oh-my-bash/custom/aliases/
# Example format: aliases=(vagrant composer git-avh)
# Add wisely, as too many aliases slow down shell startup.
aliases=(
general
)
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-bash/plugins/*)
# Custom plugins may be added to ~/.oh-my-bash/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
git
bashmarks
)
source "$OSH"/oh-my-bash.sh |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Could you try this? # at the end of ~/.bashrc
function _tabby_shell_working_directory_reporting {
printf '\e]1337;CurrentDir=%s\a' "$(pwd)" >/dev/tty
}
_omb_util_add_prompt_command _tabby_shell_working_directory_reporting |
Beta Was this translation helpful? Give feedback.
Could you try this?