May I define aliases elsewhere than into .bashrc ?
Posted
by Luc M
on Stack Overflow
See other posts from Stack Overflow
or by Luc M
Published on 2010-04-08T15:28:19Z
Indexed on
2010/04/08
15:33 UTC
Read the original article
Hit count: 591
We are several persons using the same login id on Linux Box.
I want to define my own aliases without interfering with anyone.
In the .bashrc
, I define a alias to my bash file defining my own aliases.
alias luc=/full/path/to/my/def_alias_luc.sh
The file /full/path/to/my/def_alias_luc.sh contains
#!/bin/bash
echo ""
echo "Defining Luc's aliases"
echo ""
echo ""
echo "aliases before..."
echo ""
alias
alias vimluc="vim -u /full/path/to/my/.vimrc "
echo ""
echo "aliases after"
echo ""
alias
After executing /full/path/to/my/def_alias_luc.sh, the alias is still undefined.
What do I miss ?
© Stack Overflow or respective owner