.bashrc 别名不起作用

.bashrc 别名不起作用

我在文件中设置了一些别名.bashrc,如下所示:

alias ras='rails server'
alias res='redis-server'
alias rc='rails console'
alias be='bundle exec'

# git alias's are as follows
alias gs='git status'
alias gc='git commit'
alias go='git checkout'
alias ga='git add -p'

但是当我尝试它们时,gs打开 Ghostscript,然后go master返回

:~/Work/boogle[master]$ go master
The program 'go' is currently not installed.  You can install it by typing:
sudo apt-get install golang-go

我正在使用 Ubuntu 12.04 LTS。如何让我的别名发挥作用?

相关内容