diff options
author | Urbain Vaes <urbain@vaes.uk> | 2016-04-09 17:19:49 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2016-04-09 17:19:49 +0100 |
commit | c8fb4a598c6067944d4d4ea3c13856f28167f4e7 (patch) | |
tree | 4cf5e67f506604457c9513f69218b95f401ac074 /zsh/functions | |
parent | 28969c5dee61c2b6108965be7dec7cab38247063 (diff) |
Use environment variable in dotfiles
Diffstat (limited to 'zsh/functions')
-rw-r--r-- | zsh/functions | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/zsh/functions b/zsh/functions index 2b43e1a..7c2b49a 100644 --- a/zsh/functions +++ b/zsh/functions @@ -6,7 +6,7 @@ function colo { $HOME/bin/recolor < ~/.Xresources/$1 # Load Xresources file for future sessions - xrdb ~/.Xresources/$1 + xrdb -I$HOME ~/.Xresources/$1 # Change environment variable export COLORSCHEME=$1 @@ -14,12 +14,3 @@ function colo { # Change default environment variable for future sessions sed -i --follow-symlinks "s/^export COLORSCHEME=.*$/export COLORSCHEME=$1/g" ~/.zsh/tmp } - -fshow() { - git log --graph --color=always \ - --format="%C(auto)%h%d %s %C(black)%C(bold)%cr" "$@" | - fzf --ansi --no-sort --reverse --tiebreak=index --toggle-sort=\` \ - --bind 'ctrl-m:execute: - echo {} | grep -o "[a-f0-9]\{7\}" | - xargs -I % sh -c "git show --color=always % | less -R"' -} |