Browse Source

snek, and read-only colors

pull/6/head
DanielFGray 4 years ago
parent
commit
ec90fb8979
5 changed files with 20 additions and 20 deletions
  1. 3
    3
      fv
  2. 3
    3
      fzmv
  3. 3
    3
      goog
  4. 6
    6
      ix
  5. 5
    5
      pkgsearch

+ 3
- 3
fv View File

@@ -1,8 +1,8 @@
#!/usr/bin/env bash

declare esc=$'\033'
declare c_reset="${esc}[0m"
declare c_red="${esc}[31m"
declare -r esc=$'\033'
declare -r c_reset="${esc}[0m"
declare -r c_red="${esc}[31m"

err() {
printf "${c_red}%s${c_reset}\n" "$*" >&2

+ 3
- 3
fzmv View File

@@ -1,8 +1,8 @@
#!/usr/bin/env bash

declare esc=$'\033'
declare c_reset="${esc}[0m"
declare c_red="${esc}[31m"
declare -r esc=$'\033'
declare -r c_reset="${esc}[0m"
declare -r c_red="${esc}[31m"
declare dryrun verbose

set -e

+ 3
- 3
goog View File

@@ -1,8 +1,8 @@
#!/usr/bin/env bash

declare esc=$'\033'
declare c_reset="${esc}[0m"
declare c_red="${esc}[31m"
declare -r esc=$'\033'
declare -r c_reset="${esc}[0m"
declare -r c_red="${esc}[31m"

err() {
printf "${c_red}%s${c_reset}\n" "$*" >&2

+ 6
- 6
ix View File

@@ -1,14 +1,14 @@
#!/usr/bin/env bash

declare esc=$'\033'
declare c_reset="${esc}[0m"
declare c_red="${esc}[31m"
declare -r esc=$'\033'
declare -r c_reset="${esc}[0m"
declare -r c_red="${esc}[31m"
declare OPTIND
declare opts=()
declare id

usage() {
more <<'HELP'
LESS=-FEXR less <<'HELP'
ix [OPTIONS]

-l list all pastes, uses fzf for interactive use
@@ -40,7 +40,7 @@ has() {
done
}

select-from() {
select_from() {
local cmd='command -v'
for a; do
case "$a" in
@@ -90,7 +90,7 @@ get_pastes() {

list_pastes() {
local highlighter
highlighter=$(select-from 'highlight -q --force -O ansi' pygmentize)
highlighter=$(select_from 'highlight -q --force -O ansi' pygmentize)
get_pastes "$(get_user_name)" | fzf \
--inline-info --cycle \
--header='Ctrl-E = edit; Ctrl-V = view; Ctrl-D = delete' \

+ 5
- 5
pkgsearch View File

@@ -1,10 +1,10 @@
#!/usr/bin/env bash

declare esc=$'\033'
declare c_reset="${esc}[0m"
declare c_red="${esc}[31m"
declare c_green="${esc}[32m"
declare c_blue="${esc}[34m"
declare -r esc=$'\033'
declare -r c_reset="${esc}[0m"
declare -r c_red="${esc}[31m"
declare -r c_green="${esc}[32m"
declare -r c_blue="${esc}[34m"
declare reverse

usage() {

Loading…
Cancel
Save