The debugger now properly launches bash 5 despite my still using zsh as my interactive shell. It's a workaround that we shouldn't have to do, but at least it works. jonkers3 commented Aug 27, 2022 • edited In my case $BASH_VERSION is empty, bash --version is 5.1.16(1)-relea...
zsh 5.8.1 (x86_64-ubuntu-linux-gnu) echo $SHELL /usr/bin/zsh i fixed it by editing line 76 of .local/lib/python3.10/site-packages/sgpt/utils.py to: if shell == "/usr/bin/zsh": I had the same issue and this worked for me. Just make sure you're looking in the right location...
*/bash*) if [[ -r "$HOME/.bash_profile" ]]; then shell_profile="$HOME/.bash_profile" else shell_profile="$HOME/.profile" fi ;; */zsh*) shell_profile="$HOME/.zprofile" ;; *) shell_profile="$HOME/.profile" ...
# macOS uses a POSIX complain version of bash as /bin/sh, but apparently it does # not strip away this feature. Also, this will fail if somebody forces the script # to be run with zsh.set -o pipefail set -e readonly source_root="$(dirname "$0")" ...
In zsh: PS1='[%2d] $ ' See info zsh 'prompt expansion' for details. In bash (or zsh -o promptsubst, though you wouldn't want to do that there as if $PWD contains % characters, that would cause further prompt expansions): PS1='[${PWD#"${PWD%/*/*}/"}] $ ' In zsh: ...
(pt_model_name,torch_dtype="auto",device_map="auto")# 加载分词器pt_tokenizer=AutoTokenizer.from_pretrained(pt_model_name)# 给模型一个人设定位sys_content="You are a helpful assistant and also a senior expert in the traditional Chinese medicine industry. You are very willing to provide me ...
Both zsh and bash have HISTFILE defined and unsetting it will produce the same result for both shells, equivalent to set +o history in bash. I'll submit a PR to fix this. 👍2 mrclaryassigned mrclary and unassigned dalthvizon Feb 6, 2025 mrclaryremoved status:Awaiting Followup on ...
Command line client cht.sh and shells support: :cht.sh code of the cht.sh client :bash_completion bash function for tab completion :bash bash function and tab completion setup :fish fish function and tab completion setup :zsh zsh function and tab completion setup Editors support: :vim cheat...
shell_profile="$HOME/.bash_profile" else shell_profile="$HOME/.profile" fi ;; */zsh*) shell_profile="$HOME/.zprofile" ;; *) shell_profile="$HOME/.profile" ;; esac cat <<EOS - Install the Homebrew dependencies if you have sudo access: ${tty_bold}Debian, Ubu...
Build shared and static shadowsock-libev and executable. Feb 20, 2017 cmake Fix detection of netinet/tcp.h on Cygwin. Jul 13, 2020 completions addtcp_tproxyoption, completions bash/zsh Jul 18, 2020 debian Revert ""DynamicUser=true" makes "/etc/init.d/shadowsocks-libev start… ...