Skip to content

Instantly share code, notes, and snippets.

@mh-mobile
Last active July 15, 2024 18:55
Show Gist options
  • Save mh-mobile/d789cb11d81746a63469a16de492ac23 to your computer and use it in GitHub Desktop.
Save mh-mobile/d789cb11d81746a63469a16de492ac23 to your computer and use it in GitHub Desktop.
piprのmacOSの設定
FROM ubuntu
RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y curl && apt-get install -y jq
RUN curl -OL https://github.com/elkowar/pipr/releases/download/v0.0.16/pipr
RUN chmod +x ./pipr
RUN mv ./pipr /usr/local/bin
WORKDIR /var/pipr
RUN apt-get install bubblewrap
function pipr() {
docker run --privileged -v $(pwd):/var/pipr -v $HOME/.config/pipr:/root/.config/pipr -it --rm pipr_cli pipr $@
}
function pipi() {
eval "$@" > pipr.in && pipr -d "cat pipr.in" --out-file pipr.out
}
function pipo() {
eval "$(cat pipr.out)"
}
function pipc() {
rm ./pipr.out
rm ./pipr.in
}
@mh-mobile
Copy link
Author

mh-mobile commented Jul 17, 2022

ホストマシンの履歴とブックマークの保存先の.config/pipr を同期

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment