【发布时间】:2013-04-25 20:03:29
【问题描述】:
我的 .bashrc 可以
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
其中包括运行我的 .bash_aliases 并为我提供了大量已定义的别名。
但是,如果我尝试使用 TMUX(使用 tmux 调用),我现在拥有的唯一别名是:
$ aliasreturn # 将显示....
$ alias rvm-restart='rvm_reload_flag=1 source '\''/home/durrantm/.rvm/scripts/rvm'\'''
我怎样才能使用 tmux 并且仍然可以使用我的所有别名。
我使用的是 Ubuntu 12.04
我的 .bashrc 文件的结尾如下所示:
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# Automatic cd'ing
shopt -s autocd
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM
export EDITOR=vim
git config --global --add color.ui true
【问题讨论】: