Bashrc
Debian 分段錯誤
編輯 .bashrc 後,我將“分段錯誤”作為錯誤。這是我添加到 bashrc 的內容:
if [ -f ~/.bashrc ]; then source ~/.bashrc fi # If not running interactively, don't do anything [ -z "$PS1" ] && return # some more ls aliases alias ll='ls -l' # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc and /etc/profile # sources /etc/bash.bashrc). if [ -f /etc/bash_completion ]; then . /etc/bash_completion fi PS1="\[\e[1;37m\](\#) \[\e[1;33m\]\D{%H:%M:%S} \[\e[0;32m\]\[\e[1;31m\]\u\[\e[1;36m\]@\h:\[\e[1;32m\]\w\[\e[1;35m\]#\[\e[m\] " export PATH=$PATH:/usr/local/sbin:/usr/sbin
然後我執行
bash
重新載入配置文件:~$ bash Segmentation fault
有關資訊,我正在使用:
~$ cat /etc/debian_version 7.7
另一件事,我的 bashrc 沒有載入。例子:
~$ ll /etc/ -bash: ll: command not found
一開始你是遞歸採購
~/.bashrc
。您可能想改為包含/etc/bashrc
。結果 bash 在解析期間以堆棧溢出終止。