diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/aliasrc | 2 | ||||
-rw-r--r-- | .config/zsh/.zshrc | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/.config/aliasrc b/.config/aliasrc index 2362487..de465ca 100644 --- a/.config/aliasrc +++ b/.config/aliasrc @@ -17,7 +17,9 @@ cdd, cd .. e, $EDITOR w, $BROWSER g, git +ff, fastfetch --raw $HOME/.cache/gentoo.six --logo-width 32 --logo-height 24 --logo-padding 2 gg, go generate ./... +gr, groot=$(git rev-parse --show-toplevel 2>/dev/null); [ -z "$groot" ] || cd "$groot" || return mmi, make clean && make && sudo make install R, R -q tmcd, tmux attach-session -t diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 383b94a..fef70e0 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -72,6 +72,8 @@ setopt prompt_subst PROMPT=" %B%F{blue}𝄞 %b%F{yellow}" RPROMPT="\$vcs_info_msg_0_ %B%F{magenta}(%B%F{cyan}%1/%B%F{magenta})" +[ -z "$SSH_CONNECTION" ] || PROMPT="$(whoami)@$(hostname)$PROMPT" + zstyle ':vcs_info:git:*' formats '%b' # Quickly navigate to a created directory @@ -94,9 +96,6 @@ f() { [ -f "${XDG_CACHE_HOME:-$HOME/.cache}/zsh-aliases" ] && source "${XDG_CACHE_HOME:-$HOME/.cache}/zsh-aliases" [ -f "${XDG_CACHE_HOME:-$HOME/.cache}/zsh-shortcuts" ] && source "${XDG_CACHE_HOME:-$HOME/.cache}/zsh-shortcuts" -# Git Root -alias gr='cd $(git rev-parse --show-cdup)' - # Load zsh-syntax-highlighting; should be last. source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null |