diff options
Diffstat (limited to 'machines/profpatsch')
-rw-r--r-- | machines/profpatsch/base.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/machines/profpatsch/base.nix b/machines/profpatsch/base.nix index 20ad2dda..2ae1d8fe 100644 --- a/machines/profpatsch/base.nix +++ b/machines/profpatsch/base.nix @@ -16,12 +16,19 @@ in boot.cleanTmpDir = true; programs.bash = { - loginShellInit = '' + interactiveShellInit = '' alias c='vim /root/vuizvui/machines/profpatsch' alias nsp='nix-shell -p' alias nrs='nixos-rebuild switch' alias tad='tmux attach -d' alias gs='git status' + + # search recursively in cwd for file glob (insensitive) + findia () { find -iname "*''${*}*"; } + # like findia, but first argument is directory + findian () { path="$1"; shift; find $path -iname "*''${*}*"; } + # like findian, but searches whole filepath + findiap () { path="$1"; shift; find $path -ipame "*''${*}*"; } ''; }; |