Last active
April 5, 2020 10:18
-
-
Save alphapapa/ca1ea75675a826e572bced86f69f51b6 to your computer and use it in GitHub Desktop.
Run a standalone Magit editor!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Please see the script's new home: https://github.com/alphapapa/magit.sh |
@c02y Thanks, please see the latest revision.
Also consider to change the bangline. On NixOS and other systems not using the standard path for bash it wont work.
Instead of
#!/bin/bash
it should be
#!/usr/bin/env bash
I get this:
command-line-1: Cannot open load file: No such file or directory, magit
@dprae show the whole process, how did you get this error?
@c02y, sorry for the late response, I figured out what the problem was. My packages weren't directly in elpa/, but in elpa/28.0/develop, I modified the script and it works perfectly.
FYI, I've put the script in a repo of its own: https://github.com/alphapapa/magit.sh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Don't know whether you have tested it, but it doesn't work for me. (bash: GNU bash, version 5.0.7(1)-release)
I tweaked it a little bit. Now it works great.
-h
doesn't work, sincegetopt
doesn't handle-h/--help
usage
function doesn't work, usecat
instead ofecho