Skip to content

Instantly share code, notes, and snippets.

@alphapapa
Last active April 5, 2020 10:18
Show Gist options
  • Save alphapapa/ca1ea75675a826e572bced86f69f51b6 to your computer and use it in GitHub Desktop.
Save alphapapa/ca1ea75675a826e572bced86f69f51b6 to your computer and use it in GitHub Desktop.
Run a standalone Magit editor!
# Please see the script's new home: https://github.com/alphapapa/magit.sh
@tasmo
Copy link

tasmo commented Sep 30, 2019

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

@dprae
Copy link

dprae commented Apr 2, 2020

I get this:

command-line-1: Cannot open load file: No such file or directory, magit

@c02y
Copy link

c02y commented Apr 3, 2020

@dprae show the whole process, how did you get this error?

@dprae
Copy link

dprae commented Apr 5, 2020

@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.

@alphapapa
Copy link
Author

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