golf golf golf...
This commit is contained in:
parent
fe0bfb1fb2
commit
0703487e4d
|
@ -10,7 +10,7 @@
|
||||||
packages = rec {
|
packages = rec {
|
||||||
default = pkgs.stdenvNoCC.mkDerivation rec {
|
default = pkgs.stdenvNoCC.mkDerivation rec {
|
||||||
pname = "irs";
|
pname = "irs";
|
||||||
version = "0.1";
|
version = "0.2";
|
||||||
|
|
||||||
src = ./src;
|
src = ./src;
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
usage(){ printf "Opens a script in $EDITOR either as an argument or from the ~/.local/bin directory using skim\n"; }
|
usage(){ printf "Opens a script in $EDITOR either as an argument or from the ~/.local/bin directory using skim\n"; }
|
||||||
if [ $# -eq 1 ] ; then
|
if [ $# -eq 1 ] ; then
|
||||||
case $1 in
|
case $1 in
|
||||||
--help) usage ;;
|
--help|-h) usage ;;
|
||||||
-h) usage ;;
|
|
||||||
*) $EDITOR $(which $1);;
|
*) $EDITOR $(which $1);;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue