Kevin Mok
6 years ago
16 changed files with 82 additions and 48 deletions
-
29aliases/key_aliases
-
2fish/.config/fish/config.fish
-
8fish/.config/fish/functions/drop-grocery.fish
-
4fish/.config/fish/functions/grep-kuhn.fish
-
4fish/.config/fish/functions/grep-pdf-file.fish
-
2fish/.config/fish/functions/grep-pdf.fish
-
3fish/.config/fish/functions/pastebin.fish
-
3fish/.config/fish/functions/redshift-set.fish
-
3fish/.config/fish/functions/shred-rm.fish
-
14i3/.config/i3/config
-
10mpv/.config/mpv/input.conf
-
4scripts/sync-shortcuts
-
12txt/key_dirs.txt
-
10txt/key_files.txt
-
20vim/.vimrc
-
2x/.Xresources
@ -1,8 +0,0 @@ |
|||
function drop-grocery |
|||
set collection 'stores' |
|||
switch $argv[1] |
|||
case f |
|||
set collection 'foods' |
|||
end |
|||
mongo GroceryAPI --eval "db.$collection.drop()" |
|||
end |
@ -1,4 +0,0 @@ |
|||
function grep-kuhn |
|||
pdfgrep -n $argv[1] -B $argv[2] -A $argv[3] /home/kevin/school/hps/w5-6-historicism/*/kuhn*.pdf > $argv[1].txt |
|||
and nvim $argv[1].txt -c "/$argv[1]" |
|||
end |
@ -0,0 +1,4 @@ |
|||
function grep-pdf-file |
|||
pdfgrep -n $argv[1] -B $argv[2] -A $argv[3] (fd -e pdf --no-ignore-vcs) > grep-$argv[1].txt |
|||
and nvim grep-$argv[1].txt -c "/$argv[1]" |
|||
end |
@ -1,3 +1,3 @@ |
|||
function grep-pdf |
|||
pdfgrep -n $argv[1] -B $argv[2] -A $argv[3] (fd -e pdf --no-ignore-vcs) |
|||
pdfgrep -n $argv[1] (fd -e pdf --no-ignore-vcs) |
|||
end |
@ -0,0 +1,3 @@ |
|||
function pastebin |
|||
cat $argv[1] | curl -F 'sprunge=<-' http://sprunge.us |
|||
end |
@ -0,0 +1,3 @@ |
|||
function redshift-set |
|||
redshift -x && redshift -O (math "$argv[1] * 100") |
|||
end |
@ -0,0 +1,3 @@ |
|||
function shred-rm |
|||
shred $argv && rm $argv |
|||
end |
Write
Preview
Loading…
Cancel
Save
Reference in new issue