Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

    # ci = clipboard in, co = clipboard out
    # xclip so this works in gui apps too
    alias ci="xclip -selection clipboard"
    alias co="xclip -selection clipboard -o"
Also: tig, Text-mode interface for git https://github.com/jonas/tig


Is that equivalent to `pbcopy` and `pbpaste` on OSX?


Those commands aren't exactly the same. These copy what you have selected. You can use xclip just like pbcopy/pbpaste though. Xclip has a few more features and you can get it on mac via brew and nix iirc.


The usefulness of xclip is the thing that's currently preventing me from accepting fedora's urging to switch my default session to wayland.


I've been on Wayland for over a year and I have had a good experience with wl-clipboard (has the wl-copy and wl-paste commands).


I will have to try again. Last time I attempted, wl-paste did not work in my terminal, which fully killed it for me.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: