File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ is_osx && pbcopy
4+ is_wsl && clip.exe
5+ is_ubuntu && xclip -selection c
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ is_osx && pbpaste " $@ "
4+ is_wsl && powershell.exe Get-Clipboard " $@ " || pbpaste " $@ "
5+ is_ubuntu && xclip -selection clipboard -o
Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ is_ubuntu() {
2323 [[ " $( cat /etc/issue 2> /dev/null) " =~ Ubuntu ]] || return 1
2424}
2525
26+ export -f is_osx
27+ export -f is_wsl
28+ export -f is_ubuntu
29+
2630# add binaries into the path
2731export PATH=" $DOTFILES /bin:$DOTFILES /best/bin:/usr/local/opt/sqlite/bin:$HOME /.cargo/bin:$PATH "
2832
Original file line number Diff line number Diff line change @@ -4,11 +4,6 @@ is_osx || return 1
44# https://unix.stackexchange.com/a/221988
55ulimit -n 10000
66
7- # Trim new lines and copy to clipboard
8- alias c=pbcopy
9- alias e=pbpaste # i have conflicts with p, a, s, and t if you can believe it
10- alias v=pbpaste # wait, ctrl-c and ctrl-v are pretty much universal, so just c and v are good
11-
127# Make 'less' more.
138[[ "$(command -v lesspipe.sh > /dev/null 2>&1)" ]] && eval "$(lesspipe.sh)"
149
You can’t perform that action at this time.
0 commit comments