Skip to content

Commit

Permalink
install translate-shell
Browse files Browse the repository at this point in the history
  • Loading branch information
kenkenpa198 committed Apr 20, 2024
1 parent 25bf370 commit f5a5fd7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 19 deletions.
25 changes: 7 additions & 18 deletions .config/zsh/alias.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -162,24 +162,6 @@ alias gswc="git switch -c" # -c, --create : 新しいブランチ
alias fsw="git branch -a | fzf | xargs git switch"


########################################
# google-translator
########################################
# https://github.com/Neos21/google-translator

alias gt="gtr"

# Japanese => English
# $ gtr -s 'ja' -t 'en' 'こんにちは世界'
# Hello World
alias gtje="gtr -s 'ja' -t 'en'"

# English => Japanese
# $ gtr -s 'en' -t 'ja' 'Hello World'
# こんにちは世界
alias gtej="gtr -s 'en' -t 'ja'"


########################################
# Jekyll
########################################
Expand Down Expand Up @@ -221,6 +203,13 @@ alias pg="pwgen -cnyB1" # $ pg 20 4 ... 20 桁のパスワード文字列を 4
alias rbenv-doctor="curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-doctor | bash"


########################################
# Translate Shell
########################################
alias tj="trans -b :ja"
alias te="trans -b :en"


########################################
# tree
########################################
Expand Down
1 change: 1 addition & 0 deletions setup/linux/install-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ function main {
"neofetch"
"pwgen"
"patch"
"translate-shell"
"tree"
"vim"
"wget"
Expand Down
2 changes: 1 addition & 1 deletion setup/linux/install-scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function main {
mkdir -p "$LOCAL_BIN"

# Neos21/google-translator
curl https://raw.githubusercontent.com/Neos21/google-translator/master/gtr.bash > "$LOCAL_BIN/gtr"
# curl https://raw.githubusercontent.com/Neos21/google-translator/master/gtr.bash > "$LOCAL_BIN/gtr"

# すべて実行権限を付与
chmod -R +x "$LOCAL_BIN"
Expand Down

0 comments on commit f5a5fd7

Please sign in to comment.