diff --git a/custom/ip.zsh b/custom/ip.zsh new file mode 100644 index 000000000..20d264749 --- /dev/null +++ b/custom/ip.zsh @@ -0,0 +1,4 @@ +function whatismyip() { + echo `curl http://whatismyip.akamai.com/ -s` +} + diff --git a/lib/key-bindings.zsh b/lib/key-bindings.zsh index 0e056dc72..041b59843 100644 --- a/lib/key-bindings.zsh +++ b/lib/key-bindings.zsh @@ -91,3 +91,9 @@ bindkey "^[m" copy-prev-shell-word ## Fix weird sequence that rxvt produces #bindkey -s '^[[Z' '\t' # + +#Completion in the middle of a line +bindkey '^i' expand-or-complete-prefix +##pushes current command on command stack and gives blank line, after that line runs command stack is popped +bindkey "^t" push-line-or-edit + diff --git a/themes/sankara.zsh-theme b/themes/sankara.zsh-theme new file mode 100644 index 000000000..ba68b9710 --- /dev/null +++ b/themes/sankara.zsh-theme @@ -0,0 +1,13 @@ +if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi +local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" + +PROMPT='%{$fg[$NCOLOR]%}%n%{$fg[green]%}@%m:%40<...<%{$reset_color%} %~ \ +%{$fg[red]%}%(!.#.»)%{$reset_color%} ' +RPROMPT='%{$fg[red]%}«%{$reset_color%} $(git_prompt_info) %F{blue} %F{green}%D{%L:%M} %F{yellow}%D{%p}%f' + +ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}±%{$fg[yellow]%}" +ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " +ZSH_THEME_GIT_PROMPT_CLEAN="" +ZSH_THEME_GIT_PROMPT_DIRTY="⚡" + +export GREP_COLOR='1;35'