summaryrefslogtreecommitdiff
path: root/.zsh/zsh-functions
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-08-11 15:58:37 +0200
committerUrbain Vaes <urbain@vaes.uk>2015-08-11 15:58:37 +0200
commit5e17418f1eef06e97bb621edf53530437df8b14f (patch)
treef87466982929a0d0fead9ec97a5e9b017c76bf9e /.zsh/zsh-functions
parent8df9472e0cdbab0d12211c2bc77918e8f515c409 (diff)
Back up several files
Diffstat (limited to '.zsh/zsh-functions')
-rw-r--r--.zsh/zsh-functions31
1 files changed, 0 insertions, 31 deletions
diff --git a/.zsh/zsh-functions b/.zsh/zsh-functions
deleted file mode 100644
index f9f387d..0000000
--- a/.zsh/zsh-functions
+++ /dev/null
@@ -1,31 +0,0 @@
-function colo {
-
- # Change colors for current session
- $HOME/.bin/recolor.sh < ~/.Xresources/Xresources.$1
-
- # Load Xresources file for future sessions
- xrdb ~/.Xresources/Xresources.$1
-
- # Change environment variable
- export COLORSCHEME=$1
-
- # Change default environment variable for future sessions
- sed -i --follow-symlinks "s/^export COLORSCHEME=.*$/export COLORSCHEME=$1/g" ~/dotfiles/zshrc
-}
-
-z() {
- if [[ -z "$*" ]]; then
- cd "$(_z -l 2>&1 | fzf-tmux +s --tac | sed 's/^[0-9,.]* *//')"
- else
- _z "$@"
- fi
-}
-
-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"'
-}