y not adding ugly sounds when u git push
- go
- afplay (for darwin like OSX) or aplay (for linux OS)
# build go image
sudo docker-compose build
# launch image on background process
sudo docker-compose up -d
# exec go command using docker envinroment
sudo docker-compose exec gpshr go run *.go
run this command below:
chmod +x install.sh
./install.sh
default, this script add path both bash/zsh & fish
-
gpshr
see help
-
gpshr -(un)install [directory] -hooks [hooks]
select [hooks] hooks (push, commit and checkout) then (un)install sound sctipts into [directory]
-
gpshr -import [music file]
import sound from [music file]
try import them into each shell settings:
~/.profile
export PATH="~/.gpshr" : "$PATH"
~/.config/fish/conf.d/gpshr.fish
set PATH ~/.gpshr : "$PATH"
- go
- afplay (darwinおよびOSXを使ってる人はこれ) or aplay (linuxを使ってる人はこれ)
# イメージをビルド
sudo docker-compose build
# バックグラウンドでイメージを立ち上げる
sudo docker-compose up -d
# ドッカー環境でgoを使ってソフトを動かす
sudo docker-compose exec gpshr go run *.go
クローンしたフォルダーで以下のコマンドを叩いてください:
chmod +x install.sh
./install.sh
bash, zsh & fishにgpshrのパスが通されます 実際にスクリプトをインストールして、音を鳴らしてみましょう!!!楽しみ!!!
-
gpshr
コマンドのヘルプが表示されます
-
gpshr -(un)install [ディレクトリ] -hooks [フックス]
[ディレクトリ]で、[フックス](push, commitまたはcheckoutを入れてください)された時に音がなる様に設定します。
-
gpshr -import [音楽ファイル]
~/.gpshr/sounds に[音楽ファイル]をインポートします
パスが通ってないのかもしれません、使用されているシェルに従って以下のスクリプトを設置してください:
~/.profile
export PATH="~/.gpshr" : "$PATH"
~/.config/fish/conf.d/gpshr.fish
set PATH ~/.gpshr : "$PATH"