Shell-Turtlestein icon indicating copy to clipboard operation
Shell-Turtlestein copied to clipboard

Running commands on bash

Open maraujop opened this issue 11 years ago • 3 comments

Hi there,

I love turtlestein concept, however I'm not managing to get the most of out it. I've set my user settings like this:

{
    "surround_cmd": ["source ~/.bashrc &&", ""]
}

However, when I run a command what I get is:

/bin/sh: 1: source: not found

does this mean commands are run in /bin/sh ? any way I can get bash for my commands? I want to load my .bashrc for loading Python virtualenvs.

Thanks, cheers Miguel

maraujop avatar Jun 25 '13 11:06 maraujop

Try "surround_cmd": [". ~/.bashrc &&", ""]

Sent from my phone

On Jun 25, 2013, at 6:46 AM, Miguel Araujo [email protected] wrote:

"surround_cmd": ["source ~/.bashrc &&", ""]

misfo avatar Jun 26 '13 18:06 misfo

Hello,

I have the same problem adding that line does not seam to help either. It seams that all commands are ran thru /bin/sh. If I run commands directly in /bin/sh and do ". ~/.bashrc" after that I can run my aliases. Using the surround_cmd just give this error:

/bin/sh: 1: ll: not found [Finished in 0.0s with exit code 127]

VeridionRO avatar Feb 19 '14 01:02 VeridionRO

I am having the same sort of problem. I am using fishshell and have written a function (alias in other shells) for it. But I can't run in from Mr. Turtlestein.

MalcolmK avatar Jan 26 '15 20:01 MalcolmK