mirror of
https://github.com/mitchell/dotfiles.git
synced 2026-08-10 00:09:35 +00:00
refactor: reorganize into packages for modular use
This commit is contained in:
parent
e33c60c7aa
commit
fd32e1431c
57 changed files with 0 additions and 66 deletions
|
|
@ -1,2 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
wezterm start -- fish -c jmpv
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
#!/usr/bin/env fish
|
||||
rebar
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
#!/usr/bin/env fish
|
||||
wezterm start -- fish -c "redisco $argv"
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
#!/usr/bin/env fish
|
||||
wezterm start -- fish -c "sesh $argv"
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
#!/usr/bin/env fish
|
||||
toglpulse
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
wezterm start -- fish -c vban
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
wezterm start -- fish -c ytmpv
|
||||
52
swim
52
swim
|
|
@ -1,52 +0,0 @@
|
|||
#!/usr/bin/env -S fish --private
|
||||
|
||||
set general_help '
|
||||
A collection of useful functions for this project.
|
||||
|
||||
Either run a function like ./swim.fish <function> [arg [arg [...]]
|
||||
or source the file and run them as commands:
|
||||
$ source ./swim.fish
|
||||
$ lint [args]
|
||||
|
||||
Run ./swim help <function_name> to see it\'s definition.
|
||||
'
|
||||
|
||||
# Configuration
|
||||
|
||||
set src_fish_files \
|
||||
./install_arch \
|
||||
./provision_linux \
|
||||
./sync \
|
||||
./upgrade_debian \
|
||||
./**.fish \
|
||||
./.**.fish
|
||||
|
||||
# Commands
|
||||
|
||||
function lint -d 'Lint fish scripts'
|
||||
fish --no-execute $src_fish_files
|
||||
end
|
||||
|
||||
function format -d 'Format fish scripts'
|
||||
fish_indent --write $src_fish_files
|
||||
end
|
||||
|
||||
# --- execution/help handling ---
|
||||
|
||||
function help -a function_name -d 'Displays help for internal function'
|
||||
if test -n "$function_name"
|
||||
functions $function_name
|
||||
else
|
||||
echo $general_help
|
||||
end
|
||||
end
|
||||
|
||||
argparse --ignore-unknown h/help -- $argv
|
||||
|
||||
if test -n "$_flag_h"
|
||||
help $argv
|
||||
else if test -n "$argv"
|
||||
$argv
|
||||
else
|
||||
echo $general_help
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue