From e6a1b07a566b678ab236650d4fe619c1cd008cfb Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sun, 13 Mar 2016 18:32:47 +0000 Subject: Add ledgerrc --- .dotmap | 7 ++++--- bin/dot | 1 + ledgerrc | 2 ++ zsh/alias | 27 +++++++++++++++++++++++++++ zsh/aliases | 27 --------------------------- zsh/zshrc | 2 +- 6 files changed, 35 insertions(+), 31 deletions(-) create mode 100644 ledgerrc create mode 100644 zsh/alias delete mode 100644 zsh/aliases diff --git a/.dotmap b/.dotmap index 01c19c2..9686014 100644 --- a/.dotmap +++ b/.dotmap @@ -1,6 +1,6 @@ declare -A dotmap -dotmap[/home/urbain/.Xresources]=/home/urbain/dotfiles/Xresources dotmap[/home/urbain/.bashrc]=/home/urbain/dotfiles/bashrc +dotmap[/home/urbain/bin]=/home/urbain/dotfiles/bin dotmap[/home/urbain/.config/dunst/dunstrc]=/home/urbain/dotfiles/dunstrc dotmap[/home/urbain/.config/i3/config]=/home/urbain/dotfiles/i3/config dotmap[/home/urbain/.config/i3status/config]=/home/urbain/dotfiles/i3/i3status.conf @@ -8,10 +8,11 @@ dotmap[/home/urbain/.config/newsbeuter]=/home/urbain/dotfiles/newsbeuter dotmap[/home/urbain/.config/nvim]=/home/urbain/dotfiles/vim dotmap[/home/urbain/.config/qutebrowser]=/home/urbain/dotfiles/qutebrowser dotmap[/home/urbain/.config/zathura/zathurarc]=/home/urbain/dotfiles/zathurarc -dotmap[/home/urbain/.git_template]=/home/urbain/dotfiles/git_template dotmap[/home/urbain/.gitconfig]=/home/urbain/dotfiles/gitconfig +dotmap[/home/urbain/.git_template]=/home/urbain/dotfiles/git_template dotmap[/home/urbain/.inputrc]=/home/urbain/dotfiles/inputrc dotmap[/home/urbain/.latexmkrc]=/home/urbain/dotfiles/latexmkrc +dotmap[/home/urbain/.ledgerrc]=/home/urbain/dotfiles/ledgerrc dotmap[/home/urbain/.local/share/qutebrowser/userscripts]=/home/urbain/dotfiles/qutebrowser/userscripts dotmap[/home/urbain/.mbsyncrc]=/home/urbain/dotfiles/mbsyncrc dotmap[/home/urbain/.mrconfig]=/home/urbain/dotfiles/mr/mrconfig @@ -27,7 +28,7 @@ dotmap[/home/urbain/.vifm]=/home/urbain/dotfiles/vifm dotmap[/home/urbain/.vim]=/home/urbain/dotfiles/vim dotmap[/home/urbain/.vimrc]=/home/urbain/dotfiles/vim/vimrc dotmap[/home/urbain/.xinitrc]=/home/urbain/dotfiles/xinitrc +dotmap[/home/urbain/.Xresources]=/home/urbain/dotfiles/Xresources dotmap[/home/urbain/.zgen]=/home/urbain/dotfiles/zsh/zgen dotmap[/home/urbain/.zsh]=/home/urbain/dotfiles/zsh dotmap[/home/urbain/.zshrc]=/home/urbain/dotfiles/zsh/zshrc -dotmap[/home/urbain/bin]=/home/urbain/dotfiles/bin diff --git a/bin/dot b/bin/dot index 210c967..0049e9c 100755 --- a/bin/dot +++ b/bin/dot @@ -42,6 +42,7 @@ save() get_links | while read link; do echo "dotmap[$link]=$(realpath -q $link)" >> .dotmap done + sort .dotmap -o .dotmap } $1 diff --git a/ledgerrc b/ledgerrc new file mode 100644 index 0000000..4fb9118 --- /dev/null +++ b/ledgerrc @@ -0,0 +1,2 @@ +--pager /bin/less +--file ~/dotfiles/ledger/perso.ledger diff --git a/zsh/alias b/zsh/alias new file mode 100644 index 0000000..2341ac6 --- /dev/null +++ b/zsh/alias @@ -0,0 +1,27 @@ +#!/bin/zsh + +# Commands +alias c='clear' +alias ca='printf "\ec"' +alias cdd='cd ~/dotfiles' +alias notes='vim ~/dotfiles/.notes' + +# Programs +alias a='vifm . .' +alias ff='FreeFem++' +alias g='git' +alias l='ledger' +alias el='vim ~/dotfiles/ledger/perso.ledger' +alias m='cd ~/.mutt/attachments && mutt && cd -' +alias n='newsbeuter' +alias v='vim' +alias vims="vim -S Session.vim" +alias vimtex='vim -S Session.vim --servername SYNC' + +# Build +alias mc='make clean' +alias mca='make clean-all' + +# Tmux +alias son="tmux set -g status on" +alias soff="tmux set -g status off" diff --git a/zsh/aliases b/zsh/aliases deleted file mode 100644 index c91fce8..0000000 --- a/zsh/aliases +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/zsh - -# Commands -alias c='clear' -alias ca='printf "\ec"' -alias cdd='cd ~/dotfiles' -alias notes='vim ~/dotfiles/.notes' - -# Programs -alias a='vifm . .' -alias ff='FreeFem++' -alias g='git' -alias l='ledger -f ~/dotfiles/ledger/perso.ledger' -alias lj='vim ~/dotfiles/ledger/perso.ledger' -alias m='cd ~/.mutt/attachments && mutt && cd -' -alias n='newsbeuter' -alias v='vim' -alias vims="vim -S Session.vim" -alias vimtex='vim -S Session.vim --servername SYNC' - -# Build -alias mc='make clean' -alias mca='make clean-all' - -# Tmux -alias son="tmux set -g status on" -alias soff="tmux set -g status off" diff --git a/zsh/zshrc b/zsh/zshrc index 22860cd..7f0d181 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -4,7 +4,7 @@ # Source configuration files source "$HOME/.zsh/plugins" source "$HOME/.zsh/functions" -source "$HOME/.zsh/aliases" +source "$HOME/.zsh/alias" source "$HOME/.zsh/tmp" # Custom key bindings for built-in widgets -- cgit v1.2.3