Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 17 07:46
    nwinkler commented #1478
  • Jan 17 00:38
    kirk86 commented #1478
  • Jan 17 00:36
    davidpfarrell commented #1478
  • Jan 16 23:18
    kirk86 commented #1478
  • Jan 16 23:17
    kirk86 commented #1478
  • Jan 16 23:07
    davidpfarrell commented #1478
  • Jan 16 23:06
    davidpfarrell commented #1478
  • Jan 16 22:47
    kirk86 commented #1478
  • Jan 16 22:39
    davidpfarrell commented #1478
  • Jan 16 22:33
    davidpfarrell commented #1478
  • Jan 16 22:03
    kirk86 commented #1478
  • Jan 16 21:02
    davidpfarrell commented #1478
  • Jan 16 20:16
    kirk86 opened #1478
  • Jan 16 11:57
    nwinkler commented #1477
  • Jan 16 11:55
    nwinkler commented #1474
  • Jan 16 11:55

    nwinkler on master

    Corrects the inclusion file lis… Merge pull request #1474 from d… (compare)

  • Jan 16 11:55
    nwinkler closed #1474
  • Jan 16 11:49
    chen-shang opened #1477
  • Jan 16 05:38
    davidpfarrell commented #1476
  • Jan 16 03:57

    tswicegood on master

    Fix the completion for pip/pip3 touch up modified: completion… Merge pull request #1475 from h… (compare)

Jemli Fathi
@jemliF
I have this command in which I wanna check the response of a web service
if [[ $(curl -s -XGET http://url.com | jq --compact-output '.projectStatus.status') -eq "ERROR" ]] ; then echo "failure"; else echo "success";
I don't know why it's not working
all I get is a command prompt like this >
wolfravenous
@wolfravenous
when I run a command in the terminal it works fine, however, when I try to put that command in a shell script it gives an error. I know this is because the script actually launches a "child" shell to run the command that doesn’t inherit the various properties of the user in the "parent" shell. I can’t seem to find a way to run the command in a script and preserve all the properties of the user running the script, for example the PATH variables and such. Any *nix gurus know how to setup the script or the command to execute the script so as to avoid the error? the command is: 'code' bundle exec rails server -e production -p 3030 -d 'code'
Troy Hinckley
@CeleritasCelery
if $PATH is exported then the child process will inherit it. Make sure all the variables you need are exported
wolfravenous
@wolfravenous
Troy, thanks. Actually I am realizing the problem isn't with the shell script, it is that I am using an applescript .app to launch the shell script. If I launch the shell script from the command line using ./script.txt then the script executes just fine, same as pasting the command into terminal and running it. The breakdown is using the applescript .app to launch it. I did add in some which commands to see the output. When I run which ruby, which rails, which bundle in the script I get different output from the script when I run it from command line verses launching it via an applescript .app. I will take a look around some of the apple script forums and see if I can figure it out. Thanks again.
Vijay
@VQuery
Hi guys
I am launching jnlp file via shell file by using below command
javaws slave-agent.jnlp
In terminal shell script closed once launched jnlp but in automator run shell script application keep running untill kill jnlp file manually.
image.png
in terminal
image.png
Vijay
@VQuery
How can we stop run shell script application execution automatically once launched jnlp in automator ?
Michael
@g4m3rm1k3
maybe an exit at the end of the command?
Vijay
@VQuery
@g4m3rm1k3 exit not working
Now i am using crontab but its not launching jnlp file properly ! :worried:
Michy Amrane
@mIcHyAmRaNe
hello, i just installed bash-it, but i feel it's too long to load when we open new tab in terminal
3 seconds :(
Michy Amrane
@mIcHyAmRaNe
i have only: alias-completion base fasd git node & python plugins enabled
apt general git npm & yarn aliases enabled
bash-it bundler git npm pip pip3 system completion enabled
Troy Hinckley
@CeleritasCelery
Is it faster with no add-ons enabled?
Michy Amrane
@mIcHyAmRaNe
little bit
Troy Hinckley
@CeleritasCelery
And is it as fast as you want if you don’t load bash-it in your rc file?
youngKook
@cyg02032015
屏幕快照 2018-02-28 上午10.32.41.png
How can i setting it with shell
aaaa.png
codervs
@codervs
Hi! Can someone help me simulate user input in bash script.
without using expect or sshpass... I want to write a script to login to server
I also don't want to use ssh keys
John Nolette
@neetjn
Hey guys
I just finished a clean install of deepin (distro based on ubuntu), and I'm running into a strange issue
My environment variables from /etc/environment aren't being picked up in sudo
John Nolette
@neetjn
oops
'env_reset'
Roy Mor
@Kashio
Hey I'm trying to find all words pair in a file using grep with perl's lookahead assertion but it doesn't work, any suggestions?:
cat words.txt | grep -P -o '([[:alnum:]]\+)[[:space:]]\+(?=([[:alnum:]]\+))'
Ricardo Lima
@riclima
Hi, is there a way to preview all the bash-it themes?
Troy Hinckley
@CeleritasCelery
You can easily preview the themes in your own shell using BASH_PREVIEW=true reload
Ricardo Lima
@riclima
@CeleritasCelery nice, that was what I was looking for. Cheers!
Ricardo Lima
@riclima
Is it possible to set Bash-it to update based on a different branch other than master?
I'm using my fork as the remote, and I'd like to keep master on track with upstream master, and instead make my copies to track my dev branch
Peter Bittner
@bittner
Maybe this has been asked a million times before (I apologize!) ...
Is there a command provided by Bash-it to list all short Git aliases? - My approach is this: (works, but not particularly short and easy to memorize)
$ alias | grep "'git " | sed -E "s/^alias ([a-zA-Z]*)='git .*$/\\1/" | xargs
Peter Bittner
@bittner
bash-it show aliases git (understandably) doesn't give the output I would have expected.
Nils Winkler
@nwinkler
@bittner You can use bash-it help aliases git to list all of the Git aliases. bash-it show shows what is enabled/disabled...
There's no short command that does what you want, no. Why don't you define a custom function for yours? You could provide a parameter for your search term (git in your case)... If you provide a PR that adds this function (e.g. find-aliases) to the base plugin, I'd be more than happy to merge this into Bash-it.
@riclima Sorry for the late reply... For your question on bash-it update: By default, it pulls from origin - so if your local clone is pointing to your own fork as origin, that should work automatically. If not, you can set the BASH_IT_REMOTE variable in your shell and it will pull from that instead. Using your fork as origin is probably easier, though - that's how I use it as well.
Peter Bittner
@bittner
Wow, bash-it help aliases git -- that's it! Awesome, thank you!
Is this documented somewhere? We should add this if it's not. It helps beginners and occasional users of the short commands.
Nils Winkler
@nwinkler
The general Bash-it readme has a list of the commands (including help), but it does not go into any detail :worried: I always wanted to move more documentation to the Wiki, but haven't had the time for that yet... So many other things to do.
Ghost
@ghost~581ee415d73408ce4f33f634
Hello everyone. I had a quick question. Is a feature like autosuggestion which zsh and fish have technically possibly to be built for bash-it as a plugin or does it exist?
Nils Winkler
@nwinkler
There has been a discussion on this over here: Bash-it/bash-it#894
Ghost
@ghost~581ee415d73408ce4f33f634
thanks