own per directory history
This commit is contained in:
parent
3ddfec2a5a
commit
f9cdf751fb
1 changed files with 13 additions and 11 deletions
|
|
@ -13,7 +13,7 @@ unsetopt share_history
|
||||||
keychain -q --agents ssh id_rsa id_dsa
|
keychain -q --agents ssh id_rsa id_dsa
|
||||||
|
|
||||||
# Everyday aliases
|
# Everyday aliases
|
||||||
c-cat() {for a in $@; do colorize_via_pygmentize $a; done}
|
c-cat( ) {for a in $@; do colorize_via_pygmentize $a; done}
|
||||||
c-less() {for a in $@; do colorize_via_pygmentize $a | less; done}
|
c-less() {for a in $@; do colorize_via_pygmentize $a | less; done}
|
||||||
e() {emacsclient -n $@ > /dev/null 2>&1}
|
e() {emacsclient -n $@ > /dev/null 2>&1}
|
||||||
health() {/usr/bin/screen -O -S health -c ~/.config/screen_health}
|
health() {/usr/bin/screen -O -S health -c ~/.config/screen_health}
|
||||||
|
|
@ -24,6 +24,8 @@ r() {if [ $# -eq 1 ]; then ssh root@$1; else sudo su -; fi}
|
||||||
dontknow() {echo -n "¯\\_(ツ)_/¯" | xclip}
|
dontknow() {echo -n "¯\\_(ツ)_/¯" | xclip}
|
||||||
def() {echo "default_path = '$PWD'" | awesome-client}
|
def() {echo "default_path = '$PWD'" | awesome-client}
|
||||||
dchroot() {docker run --rm --privileged -ti $@ debian:stretch /bin/bash}
|
dchroot() {docker run --rm --privileged -ti $@ debian:stretch /bin/bash}
|
||||||
|
local-history() {mkdir -p /home/hybris/.directory_history/$PWD; HISTFILE=/home/hybris/.directory_history/$PWD/history}
|
||||||
|
global-history() {HISTFILE=/home/hybris/.zsh_history}
|
||||||
|
|
||||||
# Usefull bindings
|
# Usefull bindings
|
||||||
bindkey "^[Od" backward-word
|
bindkey "^[Od" backward-word
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue