Last active
July 15, 2024 18:55
-
-
Save mh-mobile/d789cb11d81746a63469a16de492ac23 to your computer and use it in GitHub Desktop.
piprのmacOSの設定
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ホストマシンの履歴とブックマークの保存先の.config/pipr を同期