diff options
| -rw-r--r-- | .gitmodules | 2 | ||||
| -rw-r--r-- | files/.zsh/rc/S20_environment | 2 | ||||
| -rw-r--r-- | files/.zsh/rc/S50_aliases | 2 | ||||
| -rw-r--r-- | files/.zsh/rc/S51_ledger | 7 | ||||
| m--------- | files/.zsh/z | 0 |
5 files changed, 11 insertions, 2 deletions
diff --git a/.gitmodules b/.gitmodules index 385cbae..21d2ad1 100644 --- a/.gitmodules +++ b/.gitmodules @@ -6,7 +6,7 @@ url = https://github.com/abobov/zsh-completions.git [submodule "files/.zsh/z"] path = files/.zsh/z - url = https://github.com/abobov/z.git + url = https://github.com/rupa/z.git [submodule "files/.zsh/forgit"] path = files/.zsh/forgit url = https://github.com/wfxr/forgit.git diff --git a/files/.zsh/rc/S20_environment b/files/.zsh/rc/S20_environment index ebabb5f..6d3107b 100644 --- a/files/.zsh/rc/S20_environment +++ b/files/.zsh/rc/S20_environment @@ -35,5 +35,7 @@ export LESS_TERMCAP_so=$'\E[01;44;33m' export LESS_TERMCAP_ue=$'\E[0m' export LESS_TERMCAP_us=$'\E[01;32m' +export FZF_DEFAULT_OPTS="--color=light" + # vim: et ft=zsh : diff --git a/files/.zsh/rc/S50_aliases b/files/.zsh/rc/S50_aliases index 0bf9091..c06c572 100644 --- a/files/.zsh/rc/S50_aliases +++ b/files/.zsh/rc/S50_aliases @@ -76,6 +76,8 @@ alias cclip='xclip -selection clipboard' check_com g || alias g='git' check_com s || alias s='ssh' +alias gco="git branch | fzf | xargs git checkout" + alias rscp='rsync -avzP' alias yt-date='youtube-dl --output="[%(playlist_index)s] %(upload_date)s - %(title)s-%(id)s.%(ext)s"' diff --git a/files/.zsh/rc/S51_ledger b/files/.zsh/rc/S51_ledger index 75e2243..12028ac 100644 --- a/files/.zsh/rc/S51_ledger +++ b/files/.zsh/rc/S51_ledger @@ -16,7 +16,7 @@ _ledger_smartcase_expr() { bal() { if [ $# -eq 0 ] || [[ $1 =~ [-].+ ]] ; then - ledger balance $* ^Assets ^Liabilities + ledger accounts | fzf --multi --preview "ledger balance $* {+}" elif [ $# -eq 1 ] ; then ledger balance \( ^Assets ^Liabilities \) and $(_ledger_smartcase_expr "$*") else @@ -43,4 +43,9 @@ lx() { esac } +budgets() { + seq 0 24 | xargs -I{} date -d "this month - {} months" +%Y-%m | \ + fzf --reverse --preview-window 90% --preview 'ledger budget -p {} --exchange R ^Expenses and not ^Expenses:Cash' +} + # vim: et ft=zsh : diff --git a/files/.zsh/z b/files/.zsh/z -Subproject a87ce78118bd8b7459fc53e0795b3af20f18cde +Subproject 9f76454b32c0007f20b0eae46d55d7a1488c9df |
