]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/log
xdg-ninja.git
3 years agofixed shellcheck warning
diogo464 [Sun, 15 May 2022 19:44:32 +0000 (20:44 +0100)]
fixed shellcheck warning

3 years agofix dirname
diogo464 [Sun, 15 May 2022 17:18:37 +0000 (18:18 +0100)]
fix dirname

When calling xdg-ninja.sh using
$ sh xdg-ninja.sh
or
$ bash xdg-ninja.sh

the script fails with
```
jq: error: Could not open file xdg-ninja.sh/programs/*: Not a directory
jq: error: Could not open file xdg-ninja.sh/programs/*: Not a directory
Done checking your $HOME.
```

This commit just fixed that problem.

3 years agoMerge pull request #28 from dokutan/main
b3nj5m1n [Sun, 15 May 2022 15:49:44 +0000 (17:49 +0200)]
Merge pull request #28 from dokutan/main

Add configuration file for clojure

3 years agoAdd configuration for clojure
dokutan [Sun, 15 May 2022 14:43:48 +0000 (16:43 +0200)]
Add configuration for clojure

3 years agoMerge pull request #27 from Mudskipper875/main
b3nj5m1n [Sun, 15 May 2022 14:36:00 +0000 (16:36 +0200)]
Merge pull request #27 from Mudskipper875/main

Fix escape codes for POSIX `sh`

3 years agoMerge pull request #26 from BlueBoxWare/since
b3nj5m1n [Sun, 15 May 2022 14:27:42 +0000 (16:27 +0200)]
Merge pull request #26 from BlueBoxWare/since

Add configuration for since

3 years agoFix escape codes for POSIX `sh`
Mudskipper875 [Sun, 15 May 2022 14:11:16 +0000 (19:41 +0530)]
Fix escape codes for POSIX `sh`

`\e` works with shells like bash and zsh, but not with dash.
`\033` is portable and POSIX compliant.

3 years agoAdd configuration for since
BlueBoxWare [Sun, 15 May 2022 13:33:55 +0000 (15:33 +0200)]
Add configuration for since

3 years agoMerge pull request #23 from fourchettes/fix/dash
b3nj5m1n [Sun, 15 May 2022 10:38:41 +0000 (12:38 +0200)]
Merge pull request #23 from fourchettes/fix/dash

xdg-ninja: change jq json source

3 years agoAdd newline to log HELP for increased readability
Pooya Moradi [Sun, 15 May 2022 08:31:53 +0000 (13:01 +0430)]
Add newline to log HELP for increased readability

Add disclaimer about using bat to README

3 years agoAdd support for bat for markdown rendering
Pooya Moradi [Sun, 15 May 2022 08:03:00 +0000 (12:33 +0430)]
Add support for bat for markdown rendering

3 years agoMerge pull request #25 from superrnovae/main
b3nj5m1n [Sun, 15 May 2022 10:20:56 +0000 (12:20 +0200)]
Merge pull request #25 from superrnovae/main

Add configuration files for volta and sdkman

3 years agoAdded configuration file for sdkman
parphelion [Sun, 15 May 2022 09:34:11 +0000 (11:34 +0200)]
Added configuration file for sdkman

3 years agoAdded configuration file for volta
parphelion [Sun, 15 May 2022 09:31:37 +0000 (11:31 +0200)]
Added configuration file for volta

3 years agoxdg-ninja: change jq json source
Asperatus [Sun, 15 May 2022 05:39:48 +0000 (01:39 -0400)]
xdg-ninja: change jq json source

There was an issue caused by inconsistencies on the implementation of
echo through different shells. Some, like bash, did not interpret \n
while others, like dash, did. This caused issue when sending the
information to jq to parse as it as JSON specifications forbids
multi-line strings.

A quick fix was applied by giving jq the path to the file to analyze
rather than grabbing it from stdin.

3 years agoMerge pull request #20 from FineFindus/main
b3nj5m1n [Sun, 15 May 2022 01:49:05 +0000 (03:49 +0200)]
Merge pull request #20 from FineFindus/main

Added line break when glow is not installed

3 years agoAdd version specification to .cabal
b3nj4m1n [Sat, 14 May 2022 22:35:23 +0000 (00:35 +0200)]
Add version specification to .cabal

3 years agoAdded line break to glow not found
Jonathan [Sat, 14 May 2022 16:54:47 +0000 (18:54 +0200)]
Added line break to glow not found

Added line breaks to the message, for when glow is not installed.

3 years agoMore inline with the rest of the configs
b3nj4m1n [Sat, 14 May 2022 16:43:17 +0000 (18:43 +0200)]
More inline with the rest of the configs

3 years agoMerge pull request #18 from Vikingat-RAGE/main
b3nj5m1n [Sat, 14 May 2022 16:36:03 +0000 (18:36 +0200)]
Merge pull request #18 from Vikingat-RAGE/main

Added configuration file for x2go

3 years agoMerge pull request #19 from fourchettes/readme_update
b3nj5m1n [Sat, 14 May 2022 15:47:00 +0000 (17:47 +0200)]
Merge pull request #19 from fourchettes/readme_update

README: use more generic term than bash

3 years agoREADME: use more generic term than bash
Asperatus [Sat, 14 May 2022 15:43:20 +0000 (11:43 -0400)]
README: use more generic term than bash

3 years agoSwitch heredoc & BASH_SOURCE to POSIX compliant
b3nj4m1n [Sat, 14 May 2022 15:25:10 +0000 (17:25 +0200)]
Switch heredoc & BASH_SOURCE to POSIX compliant

commit f2b591e93af3d3a210c5f8305643271fde4235eb
Author: b3nj4m1n <b3nj4m1n@gmx.net>
Date:   Sat May 14 17:21:03 2022 +0200

    Heredoc & BASH_SOURCE

commit b52561fa1db78cdf9a82da829c3ba32c1d30455e
Author: b3nj4m1n <b3nj4m1n@gmx.net>
Date:   Sat May 14 17:16:05 2022 +0200

    Revert "POSIX compliancy"

    This reverts commit 4cad6152d25430956c48a9fe606323b8a22a0600.

commit 4cad6152d25430956c48a9fe606323b8a22a0600
Author: 2641a40fd44383320adde4b027a1d0b03bd550 <58827198+2641a40fd44383320adde4b027a1d0b03bd550@users.noreply.github.com>
Date:   Sat May 14 11:08:21 2022 +0500

    POSIX compliancy

3 years agoAdded configuration file for newsboat
Eryk Skalinski [Sat, 14 May 2022 13:56:52 +0000 (14:56 +0100)]
Added configuration file for newsboat

3 years agoAdded configuration file for x2go
Eryk Skalinski [Sat, 14 May 2022 13:38:51 +0000 (14:38 +0100)]
Added configuration file for x2go

3 years agoMerge pull request #17 from Vikingat-RAGE/patch-1
b3nj5m1n [Sat, 14 May 2022 13:19:19 +0000 (15:19 +0200)]
Merge pull request #17 from Vikingat-RAGE/patch-1

Fixed Xresources message

3 years agoFixed Xresources message
Viking at RAGE [Sat, 14 May 2022 13:09:52 +0000 (14:09 +0100)]
Fixed Xresources message

Xresources message shows incorrect export variable suggestion. Fixed to correct value.

3 years agoAdd shellckeck directive
b3nj4m1n [Sat, 14 May 2022 10:54:24 +0000 (12:54 +0200)]
Add shellckeck directive

3 years agoUse printf in apply_shell_expansion
b3nj4m1n [Sat, 14 May 2022 10:47:44 +0000 (12:47 +0200)]
Use printf in apply_shell_expansion

3 years agoRemove uses of declare
b3nj4m1n [Sat, 14 May 2022 10:41:55 +0000 (12:41 +0200)]
Remove uses of declare

3 years agoUse long form instead of &>
b3nj4m1n [Sat, 14 May 2022 10:40:05 +0000 (12:40 +0200)]
Use long form instead of &>

3 years agoUse = instead of ==
b3nj4m1n [Sat, 14 May 2022 10:35:31 +0000 (12:35 +0200)]
Use = instead of ==

3 years agoSwitch from echo to printf
b3nj4m1n [Sat, 14 May 2022 10:34:01 +0000 (12:34 +0200)]
Switch from echo to printf

3 years agoQuote $i
b3nj4m1n [Sat, 14 May 2022 10:24:30 +0000 (12:24 +0200)]
Quote $i

3 years agoChange [[ and ]] to [ and ]
b3nj4m1n [Sat, 14 May 2022 10:21:53 +0000 (12:21 +0200)]
Change [[ and ]] to [ and ]

3 years agoAdd julia configuration
b3nj4m1n [Sat, 14 May 2022 10:13:57 +0000 (12:13 +0200)]
Add julia configuration

commit 5ca571965e88d4ddf4b758a08f125da37d166c6b
Author: b3nj4m1n <b3nj4m1n@gmx.net>
Date:   Sat May 14 12:09:27 2022 +0200

    More inline with the rest of the configs

commit ff46c374811d92b23252d61d50ac844a605d8126
Merge: 1ab0d8a e4202cb
Author: Piero Simonetto <piko.simo@gmail.com>
Date:   Sat May 14 12:03:38 2022 +0200

    Merge branch 'main' of github.com:PieroSimonet/xdg-ninja

commit 1ab0d8ab51310ac7a5e286b30391c78b3412ca1c
Author: Piero Simonetto <piko.simo@gmail.com>
Date:   Sat May 14 11:58:25 2022 +0200

    a stupid stuff

commit e4202cb0fa347e09947e355f6405a6150cf0fd51
Author: Piero Simonetto <piko.simo@gmail.com>
Date:   Sat May 14 11:47:47 2022 +0200

    Added julia configuration

3 years agoMerge pull request #9 from jakkso/patch-1
b3nj5m1n [Fri, 13 May 2022 23:53:23 +0000 (01:53 +0200)]
Merge pull request #9 from jakkso/patch-1

Fix typo

3 years agoFix typo
Alexander Potts [Fri, 13 May 2022 23:50:29 +0000 (17:50 -0600)]
Fix typo

3 years agoUpdate bpython configuration
b3nj4m1n [Fri, 13 May 2022 23:15:31 +0000 (01:15 +0200)]
Update bpython configuration

3 years agoCheck for missing XDG vars
b3nj4m1n [Fri, 13 May 2022 22:27:57 +0000 (00:27 +0200)]
Check for missing XDG vars

3 years agoMerge branch 'portability'
b3nj4m1n [Fri, 13 May 2022 21:16:27 +0000 (23:16 +0200)]
Merge branch 'portability'

3 years agoxdg-ninja: security and readability fixes
Asperatus [Fri, 13 May 2022 18:07:17 +0000 (14:07 -0400)]
xdg-ninja: security and readability fixes

Here are the various fixes done:

- printf can interpret sequences, therefore you want to give variable as
  a different argument
- ! [ -z "$VAL" ] <=> [ -n "$VAL" ] <=> [ "$VAL" ]
- double quote on variables to prevent globbing and word splitting

3 years agoxdg-ninja: reformat script to standards
Asperatus [Fri, 13 May 2022 17:57:09 +0000 (13:57 -0400)]
xdg-ninja: reformat script to standards

3 years agoxdg-ninja: remove unused variables
Asperatus [Fri, 13 May 2022 17:54:03 +0000 (13:54 -0400)]
xdg-ninja: remove unused variables

Most variables were unused, and even more than that, it could cause
collisions as the variable named "HELP" was defined in some functions,
changing the value of the currently removed variable.

3 years agoMake sure to check ./programs when xdg-ninja is called from different directory
traxys [Fri, 13 May 2022 20:45:34 +0000 (22:45 +0200)]
Make sure to check ./programs when xdg-ninja is called from different directory

3 years agoDon't suppose the location of bash
traxys [Fri, 13 May 2022 19:53:03 +0000 (21:53 +0200)]
Don't suppose the location of bash

3 years agoAdd disclaimer about glow
b3nj4m1n [Fri, 13 May 2022 18:40:09 +0000 (20:40 +0200)]
Add disclaimer about glow

3 years agoMerge pull request #5 from Silejonu/patch-2
b3nj5m1n [Fri, 13 May 2022 17:29:48 +0000 (19:29 +0200)]
Merge pull request #5 from Silejonu/patch-2

Fix quotes

3 years agoUpdate subversion.json
Silejonu [Fri, 13 May 2022 17:29:01 +0000 (19:29 +0200)]
Update subversion.json

3 years agoFix quotes
Silejonu [Fri, 13 May 2022 17:26:44 +0000 (19:26 +0200)]
Fix quotes

3 years agoMerge pull request #4 from Silejonu/patch-1
b3nj5m1n [Fri, 13 May 2022 17:07:24 +0000 (19:07 +0200)]
Merge pull request #4 from Silejonu/patch-1

Improve subversion recommendation

3 years agoImprove subversion recommendation
Silejonu [Fri, 13 May 2022 17:05:12 +0000 (19:05 +0200)]
Improve subversion recommendation

3 years agoMerge pull request #3 from duongdominhchau/main
b3nj5m1n [Fri, 13 May 2022 16:47:09 +0000 (18:47 +0200)]
Merge pull request #3 from duongdominhchau/main

Typo fix for rbenv, add quote to solargraph

3 years agoTypo fix
Duong Do Minh Chau [Fri, 13 May 2022 16:41:44 +0000 (23:41 +0700)]
Typo fix

3 years agoActually exit when jq isn't installed
b3nj4m1n [Fri, 13 May 2022 16:07:07 +0000 (18:07 +0200)]
Actually exit when jq isn't installed

3 years agoCheck for presence of jq
b3nj4m1n [Fri, 13 May 2022 16:05:05 +0000 (18:05 +0200)]
Check for presence of jq

3 years agoAdd more configs
b3nj4m1n [Fri, 13 May 2022 15:18:24 +0000 (17:18 +0200)]
Add more configs

3 years agoAdded config for feh
b3nj4m1n [Fri, 13 May 2022 14:15:06 +0000 (16:15 +0200)]
Added config for feh

3 years agoAdd preview
b3nj4m1n [Fri, 13 May 2022 14:09:00 +0000 (16:09 +0200)]
Add preview

3 years agoOutput more info
b3nj4m1n [Fri, 13 May 2022 13:57:46 +0000 (15:57 +0200)]
Output more info

3 years agoAdd cli options & help to script
b3nj4m1n [Fri, 13 May 2022 13:49:36 +0000 (15:49 +0200)]
Add cli options & help to script

3 years agoAdded configurations for most of the programs listed under partial support on arch...
b3nj4m1n [Fri, 13 May 2022 13:29:01 +0000 (15:29 +0200)]
Added configurations for most of the programs listed under partial support on arch wiki

3 years agoAdd dependencies to README
b3nj4m1n [Fri, 13 May 2022 04:00:24 +0000 (06:00 +0200)]
Add dependencies to README

3 years agoUpdate README
b3nj4m1n [Fri, 13 May 2022 03:54:44 +0000 (05:54 +0200)]
Update README

3 years agoAdd configuration for rustup
b3nj4m1n [Fri, 13 May 2022 02:04:54 +0000 (04:04 +0200)]
Add configuration for rustup

3 years agoUse $EDITOR, ask before saving
b3nj4m1n [Fri, 13 May 2022 02:04:39 +0000 (04:04 +0200)]
Use $EDITOR, ask before saving

3 years agoUpdate README
b3nj4m1n [Fri, 13 May 2022 01:58:38 +0000 (03:58 +0200)]
Update README

3 years agoAdd support for cabal & stack
b3nj4m1n [Fri, 13 May 2022 01:54:21 +0000 (03:54 +0200)]
Add support for cabal & stack

3 years agoAdd add-program tool
b3nj4m1n [Fri, 13 May 2022 01:53:56 +0000 (03:53 +0200)]
Add add-program tool

3 years agoAdd subset of supported programs from arch wiki article
b3nj4m1n [Thu, 12 May 2022 17:52:13 +0000 (19:52 +0200)]
Add subset of supported programs from arch wiki article

3 years agoUpdate README
b3nj4m1n [Thu, 12 May 2022 17:03:03 +0000 (19:03 +0200)]
Update README

3 years agoAdded first implementation
b3nj4m1n [Thu, 12 May 2022 16:03:38 +0000 (18:03 +0200)]
Added first implementation

3 years agoInitial commit
b3nj5m1n [Thu, 12 May 2022 13:35:22 +0000 (13:35 +0000)]
Initial commit