: bharatvaj/dotfiles

Cross platform dotfiles for linux, mac and windows

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
#!/bin/sh

# TODO cross-platform clipborad
# Use OS-specific, should work both on console and X
os="$(uname -s)"
if [ "$os" = "Darwin" ]; then
    pbcopy
elif [ "$os" = "Windows_NT" ]; then
    command clip
elif command -v xclip >/dev/null; then
    xclip
elif command -v xsel >/dev/null; then
    xclip
fi