Compare commits

..

No commits in common. "b694e9cdf5e6a357617ff52168ef496333283cec" and "309a8833c8d472250ea1b052f319de56d36fde29" have entirely different histories.

View File

@ -2,25 +2,6 @@
autoload colors && colors autoload colors && colors
# Abstract different ways to copy to the clipboard.
if [ -n "$SSH_CONNECTION" ] ; then
# Use OSC-52 to set the clipboard
alias copy='base64 | xargs -0 printf "\033]52;c;%s\a"'
elif [ "`uname`" = "Darwin" ]; then
# Use pbcopy to set the clipboard
alias copy='pbcopy'
elif which xclip &> /dev/null; then
# Use xclip to set the clipboard
alias copy='xclip -selection c'
fi
# Abstract different ways to paste from the clipboard.
if [ "`uname`" = "Darwin" ]; then
alias paste='pbpaste'
elif which xclip &> /dev/null; then
alias paste='xclip -selection c -o'
fi
# Detect the type and extract an archive file. # Detect the type and extract an archive file.
extract() { extract() {
if [ -f $1 ]; then if [ -f $1 ]; then
@ -44,16 +25,6 @@ extract() {
fi fi
} }
if which bat &> /dev/null; then
# Wrap bat to specify a theme, always enable color, pipe the output to less.
# Both --theme and --color can be specified multiple times and will override
# these defaults.
bat() {
command bat --theme='Solarized (dark)' --color always \
--paging always --pager 'less -R' "$@"
}
fi
if which docker-machine &> /dev/null; then if which docker-machine &> /dev/null; then
# Wrap the docker command to print a message if a docker-machine is not # Wrap the docker command to print a message if a docker-machine is not
# running, rather than just stating it can not find it's socket. # running, rather than just stating it can not find it's socket.