nix

configuration files that power my machines
Log | Files | Refs | README | LICENSE

magdalena (409B)


      1 #!/bin/zsh
      2 
      3 magdalena_goto_file() {
      4 	magdalena goto-file "$@" && zle reset-prompt 2>/dev/null || true
      5 }
      6 
      7 magdalena_goto_dir() {
      8 	dir=$(magdalena goto-dir) && cd "$dir" && zle reset-prompt 2>/dev/null || true
      9 }
     10 
     11 magdalena_favorites() {
     12 	local result=$(magdalena favorites) && cd "$result"
     13 	zle reset-prompt 2>/dev/null || true
     14 }
     15 
     16 zle -N magdalena_goto_file
     17 zle -N magdalena_goto_dir
     18 zle -N magdalena_favorites