all repos — nixfiles @ b202763acacaadee0b4cbca3613eef90bea44d05

System and user configuration, managed by nix and home-manager

shell(skiphead): support skipping multiple header lines

Alan Pearce
commit

b202763acacaadee0b4cbca3613eef90bea44d05

parent

d30e1af2a0f84e28dfd13a50feeac916a06afd3e

2 files changed, 6 insertions(+), 2 deletions(-)

changed files
A user/settings/fish/functions/skiphead.fish
@@ -0,0 +1,4 @@
+function skiphead --wraps='sed 1d' --wraps=sed --argument-names count + set --query count or set --local count 1 + sed 1,{$count}d $argv[2..] +end
M user/settings/shell.nix → user/settings/shell.nix
@@ -29,8 +29,8 @@ cg = "cd $(git root)";
cdg = "cd $(git root)"; fs = "bfs -nohidden"; - nohead = "sed 1d"; - skiphead = "sed 1d"; + + nohead = "skiphead"; f = "field"; http = "xh";