diff options
-rw-r--r-- | user/settings/base.nix | 1 | ||||
-rw-r--r-- | user/settings/zsh.nix | 1 | ||||
-rw-r--r-- | user/zsh/zshrc | 5 |
3 files changed, 7 insertions, 0 deletions
diff --git a/user/settings/base.nix b/user/settings/base.nix index 5246ad0d..6f86a33e 100644 --- a/user/settings/base.nix +++ b/user/settings/base.nix @@ -51,6 +51,7 @@ remake abduco dvtm + tere (aspellWithDicts (d: [ d.en d.en-computers d.en-science d.de ])) ] ++ ( diff --git a/user/settings/zsh.nix b/user/settings/zsh.nix index 6db8bb4e..885affa1 100644 --- a/user/settings/zsh.nix +++ b/user/settings/zsh.nix @@ -106,6 +106,7 @@ in lla = "lal"; llr = "ll -t"; + c = "tere"; "c," = "cd $(ghq list -p nixfiles)"; cg = "cd $(git root)"; cdg = "cd $(git root)"; diff --git a/user/zsh/zshrc b/user/zsh/zshrc index 9e26b48c..2c87e5a7 100644 --- a/user/zsh/zshrc +++ b/user/zsh/zshrc @@ -164,3 +164,8 @@ ecpenv () { esetenv "$1" "${(P)1}" } compdef '_parameters' ecpenv + +tere() { + local result=$(command tere "$@") + [ -n "$result" ] && cd -- "$result" +} |