Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I did

r00t@wutdo~$ alias daoc='mono "~/.wine/drive_c/Program Files/DAoC/Portal.exe"'
r00t@wutdo~$ daoc

Works fine and dandy but after reboot the alias isn't saved.

r00t@wutdo:~$ alias
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal 
|| echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*
alert$//'\'')"'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias l='ls -CF'
alias la='ls -A'
alias ll='ls -alF'
alias ls='ls --color=auto'

How can I set a permanent alias?

share|improve this question
    
I fail to see how running the game Dark Age of Camelot has anything to do with servers. –  Kenny Rasschaert Jan 27 '12 at 20:32

1 Answer 1

Put it in ~/.bashrc or ~/.bash_aliases depending on your setup (or .zshrc, etc).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.