Created
December 15, 2013 10:00
-
-
Save pymen/7971005 to your computer and use it in GitHub Desktop.
ZSH Commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#zsh configs | |
############### INSERT LAST COMMAND OUTPUT ################ | |
zmodload -i zsh/parameter | |
insert-last-command-output() { | |
LBUFFER+=" $(eval $history[$((HISTCMD-1))])" | |
} | |
zle -N insert-last-command-output | |
bindkey "^X^X" insert-last-command-output | |
########################################################### | |
###################### COPY PATH OF FILE or FOLDER to CLIPBOARD ############ | |
cc() { | |
echo -n "$(realpath $1)" | xclip -selection clipboard | |
} | |
################################ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment