mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
merge wilde changes
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
];
|
||||
|
||||
home-manager.users.me = {
|
||||
home.file.".mrconfig".text = builtins.readFile <dot/mrconfig>;
|
||||
home.file.".mrconfig".text = builtins.readFile <dot/mrconfig.ini>;
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
|
||||
@@ -116,7 +116,7 @@ if has("autocmd")
|
||||
autocmd bufnewfile,bufread *.rust packadd rust-vim " | packadd deoplete-rust
|
||||
autocmd bufnewfile,bufread *.csv packadd csv-vim | set filetype=csv
|
||||
autocmd bufnewfile,bufread *.tex packadd vimtex | set filetype=tex
|
||||
autocmd bufnewfile,bufread *.ts packadd vim-typescript
|
||||
autocmd bufnewfile,bufread *.ts packadd typescript-vim
|
||||
autocmd bufnewfile,bufread *.jq packadd jq.vim
|
||||
autocmd bufnewfile,bufread *.journal packadd vim-ledger | set filetype=ledger shiftwidth=4
|
||||
autocmd bufnewfile,bufread config set filetype=conf
|
||||
|
||||
3
packages/_todo/fe
Executable file
3
packages/_todo/fe
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
IFS=$'\n' files=($(fzf-tmux --query="$1" --multi --select-1 --exit-0))
|
||||
[[ -n "$files" ]] && ${EDITOR:-vim} "${files[@]}"
|
||||
12
packages/_todo/fkill
Executable file
12
packages/_todo/fkill
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$UID" != "0" ]; then
|
||||
pid=$(ps -f -u $UID | sed 1d | fzf -m | awk '{print $2}')
|
||||
else
|
||||
pid=$(ps -ef | sed 1d | fzf -m | awk '{print $2}')
|
||||
fi
|
||||
|
||||
if [ "x$pid" != "x" ]
|
||||
then
|
||||
echo $pid | xargs kill -${1:-9}
|
||||
fi
|
||||
7
packages/_todo/fo
Executable file
7
packages/_todo/fo
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
IFS=$'\n' out=("$(fzf-tmux --query="$1" --exit-0 --expect=ctrl-o,ctrl-e)")
|
||||
key=$(head -1 <<< "$out")
|
||||
file=$(head -2 <<< "$out" | tail -1)
|
||||
if [ -n "$file" ]; then
|
||||
[ "$key" = ctrl-o ] && open "$file" || ${EDITOR:-vim} "$file"
|
||||
fi
|
||||
7
packages/_todo/vg
Executable file
7
packages/_todo/vg
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
file="$(rg $@ | fzf -0 -1 | awk -F: '{print $1}')"
|
||||
|
||||
if [[ -n $file ]]
|
||||
then
|
||||
vim $file
|
||||
fi
|
||||
5
packages/man-pdf.nix
Normal file
5
packages/man-pdf.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{ writeShellScriptBin, texlive }:
|
||||
writeShellScriptBin "man-pdf" ''
|
||||
for program in "$@"; do
|
||||
man -t "$program" | ${texlive.combined.scheme-basic}/bin/ps2pdf
|
||||
''
|
||||
Reference in New Issue
Block a user