Improve .t script
This commit is contained in:
parent
d173de93ba
commit
717d35f2b0
5 changed files with 37 additions and 17 deletions
|
@ -16,17 +16,19 @@ complete -F _dote_completions ".e"
|
|||
|
||||
_dott_completions()
|
||||
{
|
||||
if [ "${#COMP_WORDS[@]}" == "1" ]; then
|
||||
return
|
||||
if [ "${#COMP_WORDS[@]}" == "2" ]; then
|
||||
COMPREPLY=()
|
||||
while IFS='' read -r line
|
||||
do
|
||||
COMPREPLY+=("$line")
|
||||
done < <(compgen -W "$(.t -l)" "${COMP_WORDS[1]}")
|
||||
fi
|
||||
|
||||
COMPREPLY=()
|
||||
while IFS='' read -r line
|
||||
do
|
||||
COMPREPLY+=("$line")
|
||||
done < <(compgen -W "$(.t -l)" "${COMP_WORDS[1]}")
|
||||
if [ "${#COMP_WORDS[@]}" == "3" ]; then
|
||||
compgen -f "${COMP_WORDS[2]}"
|
||||
fi
|
||||
}
|
||||
complete -F _dott_completions ".t"
|
||||
complete -o filenames -F _dott_completions ".t"
|
||||
|
||||
_autostart_manage_completions()
|
||||
{
|
||||
|
|
1
.config/templates/nix/.envrc
Normal file
1
.config/templates/nix/.envrc
Normal file
|
@ -0,0 +1 @@
|
|||
use nix
|
5
.config/templates/nix/shell.nix
Normal file
5
.config/templates/nix/shell.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
with import <nixpkgs> {};
|
||||
mkShell {
|
||||
nativeBuildInputs = [
|
||||
];
|
||||
}
|
3
.config/templates/sh
Executable file
3
.config/templates/sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue