wjak56@gmail.com
9 years ago
4 changed files with 28 additions and 4 deletions
@ -0,0 +1,14 @@ |
|||
#! /usr/bin/racket |
|||
#lang racket |
|||
|
|||
(require "api.rkt") |
|||
|
|||
(define argv |
|||
(current-command-line-arguments)) |
|||
|
|||
(displayln |
|||
(add-tag-env |
|||
(vector-ref argv 0) |
|||
(vector-ref argv 1))) |
|||
|
|||
(displayln (environment-variables-names (current-environment-variables))) |
@ -0,0 +1,5 @@ |
|||
#! /usr/bin/bash |
|||
|
|||
# add a tag to the environment |
|||
name="$(echo "$(realpath --relative-to=/home/wes/myblog ${1})" | sed "s/[\:\.\/\\ \n]/_/g")_tags" |
|||
export "$name"="${!name}:#${2}" |
@ -0,0 +1,4 @@ |
|||
#! /usr/bin/bash |
|||
|
|||
name="$(echo "$(realpath --relative-to=/home/wes/myblog ${1})" | sed "s/[\:\.\/\\ \n]/_/g")_tags" |
|||
unset "$name" |
Loading…
Reference in new issue