file dance
parent
ffe95c3164
commit
27b266450b
|
@ -1 +1 @@
|
||||||
scripts/fish/priv
|
fish/priv
|
||||||
|
|
|
@ -7,10 +7,9 @@ end
|
||||||
|
|
||||||
# bootstrapping information
|
# bootstrapping information
|
||||||
# required universal variables:
|
# required universal variables:
|
||||||
# - _agw_dir_bin = volatile binary storage
|
# - _agw_dir_bin = volatile binary storage
|
||||||
# - _agw_dir_rc = the directory holding this repository
|
# - _agw_dir_rc = the directory holding this repository
|
||||||
# - _agw_dir_scripts = the directory for user-facing scripts
|
# - _agw_dir_src = non-volatile source code storage
|
||||||
# - _agw_dir_src = non-volatile source code storage
|
|
||||||
switch (uname)
|
switch (uname)
|
||||||
case Linux
|
case Linux
|
||||||
set -gx CC clang
|
set -gx CC clang
|
||||||
|
@ -19,7 +18,6 @@ switch (uname)
|
||||||
set -gx RIPGREP_CONFIG_PATH ~/.config/ripgreprc
|
set -gx RIPGREP_CONFIG_PATH ~/.config/ripgreprc
|
||||||
set -Ux _agw_dir_bin ~/bin
|
set -Ux _agw_dir_bin ~/bin
|
||||||
set -Ux _agw_dir_rc ~/rc
|
set -Ux _agw_dir_rc ~/rc
|
||||||
set -Ux _agw_dir_scripts ~/rc/scripts
|
|
||||||
set -Ux _agw_dir_src ~/src
|
set -Ux _agw_dir_src ~/src
|
||||||
case Darwin
|
case Darwin
|
||||||
set -gx CMAKE_PREFIX_PATH /usr/local/opt/qt/
|
set -gx CMAKE_PREFIX_PATH /usr/local/opt/qt/
|
||||||
|
@ -29,7 +27,6 @@ switch (uname)
|
||||||
set -gx fish_user_paths "/usr/local/opt/ruby/bin" $fish_user_paths
|
set -gx fish_user_paths "/usr/local/opt/ruby/bin" $fish_user_paths
|
||||||
set -Ux _agw_dir_bin ~/Binaries
|
set -Ux _agw_dir_bin ~/Binaries
|
||||||
set -Ux _agw_dir_rc ~/Sources/scripts
|
set -Ux _agw_dir_rc ~/Sources/scripts
|
||||||
set -Ux _agw_dir_scripts ~/Scripts
|
|
||||||
set -Ux _agw_dir_src ~/Sources
|
set -Ux _agw_dir_src ~/Sources
|
||||||
case NetBSD
|
case NetBSD
|
||||||
# Yes, these are *actually* needed.
|
# Yes, these are *actually* needed.
|
||||||
|
@ -50,7 +47,6 @@ switch (uname)
|
||||||
set -gx PKG_PATH "http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/"(uname -p)"/"(uname -r|cut -f '1 2' -d.|cut -f 1 -d_)"/All"
|
set -gx PKG_PATH "http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/"(uname -p)"/"(uname -r|cut -f '1 2' -d.|cut -f 1 -d_)"/All"
|
||||||
set -Ux _agw_dir_bin ~/bin
|
set -Ux _agw_dir_bin ~/bin
|
||||||
set -Ux _agw_dir_rc ~/rc
|
set -Ux _agw_dir_rc ~/rc
|
||||||
set -Ux _agw_dir_scripts ~/rc/scripts
|
|
||||||
set -Ux _agw_dir_src ~/src
|
set -Ux _agw_dir_src ~/src
|
||||||
case \*
|
case \*
|
||||||
echo (set_color red)"This platform is not configured!"
|
echo (set_color red)"This platform is not configured!"
|
||||||
|
@ -61,7 +57,7 @@ if test -f ~/.cargo/env
|
||||||
source ~/.cargo/env
|
source ~/.cargo/env
|
||||||
end
|
end
|
||||||
|
|
||||||
for f in (find $_agw_dir_scripts/fish -type f)
|
for f in (find $_agw_dir_rc/fish -type f)
|
||||||
source $f
|
source $f
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -67,8 +67,8 @@
|
||||||
(define (resume-from-pkg input-pkg [pkg-list all-packages])
|
(define (resume-from-pkg input-pkg [pkg-list all-packages])
|
||||||
(let ([package (car pkg-list)])
|
(let ([package (car pkg-list)])
|
||||||
(if (equal? package input-pkg)
|
(if (equal? package input-pkg)
|
||||||
pkg-list
|
pkg-list
|
||||||
(resume-from-pkg input-pkg (cdr pkg-list)))))
|
(resume-from-pkg input-pkg (cdr pkg-list)))))
|
||||||
|
|
||||||
(let* ([resume-from (make-parameter '())]
|
(let* ([resume-from (make-parameter '())]
|
||||||
[cmdline-pkgs (command-line
|
[cmdline-pkgs (command-line
|
||||||
|
@ -78,12 +78,12 @@
|
||||||
(resume-from pkg)]
|
(resume-from pkg)]
|
||||||
#:args pkgs (map string->symbol pkgs))]
|
#:args pkgs (map string->symbol pkgs))]
|
||||||
[pkgs (if (null? cmdline-pkgs)
|
[pkgs (if (null? cmdline-pkgs)
|
||||||
(let ([input-package (resume-from)])
|
(let ([input-package (resume-from)])
|
||||||
(if (null? input-package)
|
(if (null? input-package)
|
||||||
all-packages
|
all-packages
|
||||||
(resume-from-pkg (string->symbol input-package))))
|
(resume-from-pkg (string->symbol input-package))))
|
||||||
cmdline-pkgs)])
|
cmdline-pkgs)])
|
||||||
(for ([package pkgs])
|
(for ([package pkgs])
|
||||||
(build-pkg package (hash-ref package-options package (hash)))))
|
(build-pkg package (hash-ref package-options package (hash)))))
|
||||||
|
|
||||||
;; EOF
|
;; EOF
|
|
@ -23,7 +23,7 @@ function fish_greeting
|
||||||
set_color c50ed2
|
set_color c50ed2
|
||||||
|
|
||||||
echo "Word of the moment: "(shuf -n1 /usr/share/dict/words) |
|
echo "Word of the moment: "(shuf -n1 /usr/share/dict/words) |
|
||||||
awk -f $_agw_dir_scripts/text/mid.awk col=$COLUMNS
|
awk -f $_agw_dir_rc/text/mid.awk col=$COLUMNS
|
||||||
|
|
||||||
set_color normal
|
set_color normal
|
||||||
end
|
end
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
function rebuild -d 'Builds an AUR package'
|
function rebuild -d 'Builds an AUR package'
|
||||||
$_agw_dir_scripts/rebuild.rkt $argv
|
$_agw_dir_rc/build-system/rebuild.rkt $argv
|
||||||
end
|
end
|
||||||
|
|
||||||
## EOF
|
## EOF
|
|
@ -6,7 +6,7 @@ function vm-nextemu -d "Frontend to Previous" -a cfg
|
||||||
touch $config
|
touch $config
|
||||||
chmod u+w $config
|
chmod u+w $config
|
||||||
|
|
||||||
$_agw_dir_scripts/merge-ini \
|
$_agw_dir_rc/text/merge-ini \
|
||||||
$_agw_dir_rc/virtual-machines/NeXT/common \
|
$_agw_dir_rc/virtual-machines/NeXT/common \
|
||||||
$_agw_dir_rc/virtual-machines/NeXT/$cfg \
|
$_agw_dir_rc/virtual-machines/NeXT/$cfg \
|
||||||
$config
|
$config
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
function vm-qemu -d "Frontend to QEMU"
|
function vm-qemu -d "Frontend to QEMU"
|
||||||
$_agw_dir_rc/virtual-machines/qemu-setup $argv
|
$_agw_dir_rc/virtual-machines/QEMU/vm-qemu.rkt $argv
|
||||||
end
|
end
|
||||||
|
|
||||||
complete -c vm-qemu -xa "(ls $_agw_dir_rc/virtual-machines)"
|
complete -c vm-qemu -xa "(ls $_agw_dir_rc/virtual-machines)"
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
source "$_agw_dir_scripts/sharenix"
|
source "$_agw_dir_rc/sshot/sharenix"
|
||||||
run_spectacle -a
|
run_spectacle -a
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
source "$_agw_dir_scripts/sharenix"
|
source "$_agw_dir_rc/sshot/sharenix"
|
||||||
run_spectacle -m
|
run_spectacle -m
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
source "$_agw_dir_scripts/sharenix"
|
source "$_agw_dir_rc/sshot/sharenix"
|
||||||
run_spectacle -r
|
run_spectacle -r
|
|
@ -2,7 +2,7 @@
|
||||||
Description=Run some crap
|
Description=Run some crap
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/env fish --command='$_agw_dir_scripts/hourly'
|
ExecStart=/usr/bin/env fish --command='$_agw_dir_rc/system/services/hourly'
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=basic.target
|
WantedBy=basic.target
|
||||||
|
|
Loading…
Reference in New Issue