diff options
author | Julian T <julian@jtle.dk> | 2021-04-28 19:03:25 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2021-04-28 19:03:25 +0200 |
commit | dc6fed0f0a9424655929e1edf4965ddcfa78d5d3 (patch) | |
tree | 595d2f845a4a0aea3891d76780973ae48af57842 /zsh/.zshrc | |
parent | 901712e29e90e79815016d618f5472b9c90aea60 (diff) |
Script, zsh and vim changes
Diffstat (limited to 'zsh/.zshrc')
-rw-r--r-- | zsh/.zshrc | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -57,6 +57,15 @@ PROMPT='$MAINCOL%~$(git_info)$MAINCOL %(!.#.$) %F{255}' eval "$(dircolors)" zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} +# +# Terminal specific settings +# +case $TERM in + xterm*) + precmd () {print -Pn "\e]0;%~\a"} + ;; +esac + # Expand with dots # https://michael.thegrebs.com/2012/09/04/zsh-completion-waiting-dots/ expand-or-complete-with-dots() { @@ -104,6 +113,7 @@ function extra_env { alias vim="$EDITOR" alias ls='ls --color=auto' alias python="python3" +alias ipy="ipython" # # Functions @@ -137,5 +147,15 @@ function goto { fi } +function gotos { + goto $@ + if [ -f "shell.drv" ]; then + echo Loading shell.drv + nix-shell shell.drv + else + nix-shell + fi +} + source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh |