Browse Source

add rpass func

master
katherine 1 month ago
parent
commit
bb88edcb0c
4 changed files with 40 additions and 1 deletions
  1. +2
    -0
      .config/init/funcreqs/rpass
  2. +10
    -0
      .config/init/funcs/rpass
  3. +1
    -0
      .config/newsboat/urls
  4. +27
    -1
      .iex.exs

+ 2
- 0
.config/init/funcreqs/rpass View File

@@ -0,0 +1,2 @@
func_init_prereqs=(xclip)
func_init_checks=("stat /dev/random")

+ 10
- 0
.config/init/funcs/rpass View File

@@ -0,0 +1,10 @@
#!/usr/bin/env zsh
# generate random passwords

unsetopt MULTIBYTE

{
cat /dev/random | while read -u0 -k1 c; do
[[ $c =~ '^[a-zA-Z0-9]$' ]] && printf $c
done | head -c 24 && printf "\n"
} | tee >(xclip -i -selection primary) | xclip -i -selection clipboard

+ 1
- 0
.config/newsboat/urls View File

@@ -4,6 +4,7 @@ http://historyofenglishpodcast.com/feed/
http://feeds.megaphone.fm/ADL5280986787
https://api.quantamagazine.org/feed/
https://feeds.megaphone.fm/darknetdiaries
https://feeds.buzzsprout.com/1315237.rss
https://www.schneier.com/blog/atom.xml

https://aminormagazine.com/feed/


+ 27
- 1
.iex.exs View File

@@ -48,7 +48,33 @@ defmodule IExConfigInit do
"]\n",
"└:",
:reset
] |> IO.ANSI.format |> IO.chardata_to_string
] |> IO.ANSI.format |> IO.chardata_to_string,
alive_prompt: [
# "\e[1A",
"\e[G", # ANSI CHA, move cursor to column 1
:bright,
:white,
"┌[(",
:blue,
"%node",
:white,
")",
:magenta,
(if user, do: user <> "@", else: ""),
"elixir-",
Elixir.System.version,
"@",
hostname,
" ",
:blue,
dir,
:white,
"]\n",
"└:",
:reset
] |> IO.ANSI.format |> IO.chardata_to_string,
continuation_prompt: " ",
alive_continuation_prompt: " "
)
end



Loading…
Cancel
Save