非常に奇妙です。私はshopt -s autocd
を私の.bashrc
ファイル内に設定しています。私がshopt -p
を自分のシェルに実行すると、それが利用可能であることがわかります。shopt -s autocdがtmux内に存在しない場合は?
しかし、私はtmuxのシェルを起動し、shopt -p
を実行した瞬間autocdオプションは表示されなくなりましたし、ちょうどそれがここ-bash: /Users/me/some/directory: is a directory
をというメッセージで失敗する前に置くcd
コマンドなしでディレクトリに移動しようとします tmuxの内部shopt -p
の出力は
shopt -u cdable_vars shopt -s cdspell shopt -u checkhash shopt -s checkwinsize shopt -s cmdhist shopt -u compat31 shopt -s dotglob shopt -u execfail shopt -s expand_aliases shopt -u extdebug shopt -s extglob shopt -s extquote shopt -s failglob shopt -s force_fignore shopt -s gnu_errfmt shopt -s histappend shopt -u histreedit shopt -u histverify shopt -u hostcomplete shopt -s huponexit shopt -s interactive_comments shopt -u lithist shopt -s login_shell shopt -u mailwarn shopt -u no_empty_cmd_completion shopt -s nocaseglob shopt -u nocasematch shopt -u nullglob shopt -s progcomp shopt -s promptvars shopt -u restricted_shell shopt -u shift_verbose shopt -s sourcepath shopt -u xpg_echo
はここ
...です tmuxの外shopt -p
の出力は... shopt -s autocd
shopt -u cdable_vars
shopt -s cdspell
shopt -u checkhash
shopt -u checkjobs
shopt -s checkwinsize
shopt -s cmdhist
shopt -u compat31
shopt -u compat32
shopt -u compat40
shopt -u compat41
shopt -u compat42
shopt -s complete_fullquote
shopt -u direxpand
shopt -s dirspell
shopt -s dotglob
shopt -u execfail
shopt -s expand_aliases
shopt -u extdebug
shopt -s extglob
shopt -s extquote
shopt -u failglob
shopt -s force_fignore
shopt -u globstar
shopt -u globasciiranges
shopt -s gnu_errfmt
shopt -s histappend
shopt -u histreedit
shopt -u histverify
shopt -u hostcomplete
shopt -s huponexit
shopt -s interactive_comments
shopt -u lastpipe
shopt -u lithist
shopt -s login_shell
shopt -u mailwarn
shopt -u no_empty_cmd_completion
shopt -s nocaseglob
shopt -u nocasematch
shopt -u nullglob
shopt -s progcomp
shopt -s promptvars
shopt -u restricted_shell
shopt -u shift_verbose
shopt -s sourcepath
shopt -u xpg_echo
bash_profile /プロファイルにそれを貼り付ける試してみてください。 – 123