不知为什么,zsh在intellij idead中运行异常。打开Intellij IDEA的终端,输入ls等常用命令不存在,export PATH发现路径和item2下的值不同。
2 回答
慕标琳琳
TA贡献1830条经验 获得超9个赞
#!/bin/zsh# starver mod# Jetbrains uses jediterm as a java terminal emulator for all terminal uses.# There are some apparent limits on use:# - must use old-style shebang - not the #!/usr/bin/env zsh# - must implement the startup file loading here## Note: original contents are in lib/terminal.jar# mappings for Ctrl-left-arrow and Ctrl-right-arrow for word movingbindkey '^[^[[C' forward-wordbindkey '^[^[[D' backward-word ZDOTDIR=$_OLD_ZDOTDIRif [ -n "$JEDITERM_USER_RCFILE" ]then source "$JEDITERM_USER_RCFILE" unset JEDITERM_USER_RCFILEfiif [ -n "$ZDOTDIR" ]then DOTDIR=$ZDOTDIRelse DOTDIR=$HOMEfiif [ -f "/etc/zshenv" ]; then source "/etc/zshenv"fiif [ -f "$DOTDIR/.zshenv" ]; then source "$DOTDIR/.zshenv"fiif [ -n $LOGIN_SHELL ]; then if [ -f "/etc/zprofile" ]; then source "/etc/zprofile" fi if [ -f "$DOTDIR/.zprofile" ]; then source "$DOTDIR/.zprofile" fifiif [ -f "/etc/zshrc" ]; then source "/etc/zshrc"fiif [ -f "$DOTDIR/.zshrc" ]; then source "$DOTDIR/.zshrc"fiif [ -n $LOGIN_SHELL ]; then if [ -f "/etc/zlogin" ]; then source "/etc/zlogin" fi if [ -f "$DOTDIR/.zlogin" ]; then source "$DOTDIR/.zlogin" fifiif [ -n "$JEDITERM_SOURCE" ]then source $(echo $JEDITERM_SOURCE) unset JEDITERM_SOURCEfi
添加回答
举报
0/150
提交
取消