...
 
Commits (2)
......@@ -39,10 +39,10 @@ function {
zplugin light zdharma/zui
zplugin ice lucid wait'[[ -n ${ZLAST_COMMANDS[(r)cras*]} ]]'
zplugin light https://github.com/zdharma/zplugin-crasis
zplugin light zdharma/zplugin-crasis
zplugin ice pick"async.zsh" src"pure.zsh"
zplugin light https://github.com/ahmedelgabri/pure
zplugin light ahmedelgabri/pure
local SYMBOLS=("λ" "ϟ" "▲" "∴" "→" "»" "৸" "◗")
# Arrays in zsh starts from 1
......@@ -60,7 +60,7 @@ function {
# Utilities & enhancements {{{
zplugin ice wait lucid
zplugin light https://github.com/zsh-users/zsh-history-substring-search
zplugin light zsh-users/zsh-history-substring-search
# bind UP and DOWN keys
bindkey "${terminfo[kcuu1]}" history-substring-search-up
bindkey "${terminfo[kcud1]}" history-substring-search-down
......@@ -71,22 +71,22 @@ function {
zplugin ice wait blockf lucid
zplugin light https://github.com/zsh-users/zsh-completions
zplugin light zsh-users/zsh-completions
zplugin ice wait lucid atload"_zsh_autosuggest_start"
zplugin light https://github.com/zsh-users/zsh-autosuggestions
zplugin light zsh-users/zsh-autosuggestions
export ZSH_AUTOSUGGEST_USE_ASYNC=true
zplugin ice wait lucid atinit"zpcompinit; zpcdreplay"
zplugin light https://github.com/zdharma/fast-syntax-highlighting
zplugin light zdharma/fast-syntax-highlighting
zplugin ice wait lucid atclone"dircolors -b LS_COLORS > c.zsh" atpull'%atclone' pick"c.zsh"
zplugin light https://github.com/trapd00r/LS_COLORS
zplugin light trapd00r/LS_COLORS
# }}}
# Misc {{{
zplugin ice from"gh-r" as"program" bpick"*clojure-lsp*" atclone"chmod 755 clojure-lsp" atpull"%atclone" mv="clojure-lsp -> clojure-lsp"
zplugin light https://github.com/snoe/clojure-lsp
zplugin light snoe/clojure-lsp
# }}}
# Local plugins/completions/etc... {{{
......@@ -172,6 +172,7 @@ function {
export NODE_VERSIONS="${N_PREFIX}/n/versions/node"
export NODE_VERSION_PREFIX=""
(( $+commands[direnv] )) && eval "$(direnv hook zsh)"
(( $+commands[hub] )) && eval "$(hub alias -s)"
############### Kitty
if [[ ! -z "${KITTY_WINDOW_ID}" ]]; then
......
......@@ -58,13 +58,6 @@ alias r="ranger" # overrides built-in r command
(( $+commands[bat] )) && alias cat='bat '
(( $+commands[python3] )) && alias server="python3 -m http.server 80"
if (( $+commands[hub] )); then
alias git=hub
compdef g=hub
else
compdef g=git
fi
(( $+commands[yarn] )) && alias y=yarn
[[ -x "/Applications/Alacritty.app/Contents/MacOS/alacritty" ]] && alias alacritty='/Applications/Alacritty.app/Contents/MacOS/alacritty'
......@@ -22,13 +22,11 @@ function time_since_last_commit() {
}
function g() {
local __CMD="$(command -v hub || command -v git)"
if [ $# -eq 0 ]; then
printf "%s\n\n" "$(time_since_last_commit)"
"$__CMD" st 2> /dev/null || "$__CMD" status --short --branch
git st 2> /dev/null || git status --short --branch
else
"$__CMD" "$@"
git "$@"
fi
}
......