Skip to main content
Became Hot Network Question
added 21 characters in body
Source Link
terdon
  • 252.2k
  • 69
  • 480
  • 718

I have wrotewritten some scripts and stored them atin my ~/bin folder. I'm already able to run them just by calling their title during a shell session. However, they aren't running interactively (I mean, my ~/.bashrc aliasaliases are not loaded).

Is there a way to mark them to run interactively by default? Or I must I source ~/.bashrc inside of them to use its aliasany aliases defined there?

Other alternatives are welcome!

I have wrote some scripts and stored them at my ~/bin folder. I'm already able to run them just by calling their title during a shell session. However they aren't running interactively (I mean, my ~/.bashrc alias are not loaded).

Is there a way to mark them to run interactively by default? Or I must source ~/.bashrc inside of them to use its alias?

Other alternatives are welcome!

I have written some scripts and stored them in my ~/bin folder. I'm already able to run them just by calling their title during a shell session. However, they aren't running interactively (I mean, my ~/.bashrc aliases are not loaded).

Is there a way to mark them to run interactively by default? Or must I source ~/.bashrc inside of them to use any aliases defined there?

Other alternatives are welcome!

Source Link
artu-hnrq
  • 327
  • 1
  • 5
  • 16

Is possible to define a bash script to run interactively by default?

I have wrote some scripts and stored them at my ~/bin folder. I'm already able to run them just by calling their title during a shell session. However they aren't running interactively (I mean, my ~/.bashrc alias are not loaded).

Is there a way to mark them to run interactively by default? Or I must source ~/.bashrc inside of them to use its alias?

Other alternatives are welcome!