bash-it icon indicating copy to clipboard operation
bash-it copied to clipboard

My custom alias get execute when I start my terminal

Open thormengkheang opened this issue 9 years ago • 4 comments

when I start my terminal, my custom alias got execute as in the picture. my custom alias is located in ~/bash-it/aliases/enabled/custom.aliases.bash. im on ubuntu mate 16.04 bash-it

thormengkheang avatar Dec 27 '16 02:12 thormengkheang

@mengkheang What does your custom.aliases.bash file contain?

MunifTanjim avatar Dec 27 '16 12:12 MunifTanjim

@MunifTanjim my alias in custome.aliases.bash

alias go-vb="cd $HOME/Desktop/vb"
alias p="python"
alias av=". venv/bin/activate"
alias prun="av;p run.py"
alias pvb="p vb.py"

thormengkheang avatar Dec 27 '16 13:12 thormengkheang

I just tried this locally with the exact same content in ~/.bash_it/aliases/enabled/custom.aliases.bash, but it works fine for me. When opening a new Terminal window, I don't see any output like you do. I get the same error when I try to run prun manually, since I don't have venv installed, but only when I run it manually.

Not sure what's wrong in your case.

Can you try putting these aliases into an existing alias file and then enabling that? Are you seeing the same issues?

nwinkler avatar Jan 03 '17 07:01 nwinkler

I had this issue too. You need to have your aliases defined after source "$BASH_IT"/bash_it.sh. I feel like something in the complete is doing it as I kept seeing it showing an error when I encountered this issue