已解决:我在文本编辑器中选择了错误的行结尾
我尝试在我的 iPhone 上运行 .bashrc
,只是为了好玩。将 source/var/root/.bashrc
添加到我的 /etc/profile
文件后,每次登录本地或通过 SSH 的终端模拟器时都会收到此消息。
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
>
每次输入时,我的光标都会覆盖“>”
/var/root/.bashrc
的内容
alias install='apt-get install'
alias remove='apt-get remove'
alias aptsearch='apt-cache search'
alias respring='killall SpringBoard'
alias safemode='touch /var/mobile/Library/Preferences/com.saurik.mobilesubstrate.dat && killall SpringBoard'
alias shutdown='halt'
alias poweroff='halt'
alias ls='ls -group-directories-first -Ah'
alias lsl='ls -Ah1 --group-directories-first'
alias killall='killall -v'
alias reload='source /var/root/.bashrc'
export PS1='\w> '
clear
/etc/profile
的内容
export PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games'
export PS1='\h:\w \u\$ '
umask 022
for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done
source /var/root/.bashrc
感谢任何和所有帮助。
已解决:我在文本编辑器中选择了错误的行结尾
最佳答案
尝试手动执行脚本并查看输出。您应该获得一个行号来帮助您。
关于iPhone .bashrc 无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16889476/