dotfiles

Linux and macOS dotfiles
git clone https://github.com/michaelneuper/dotfiles.git
README | Files | Log | Refs

commit 86118dd615a58921481b7249358dc3d43830b4e6
parent 3b58cb2110f71eccc3bd54af97f387df94e60da0
Author: Michael Neuper <73108749+michaelneuper@users.noreply.github.com>
Date:   Fri,  2 Dec 2022 20:32:19 +0200

Add translate aliases and functions

Diffstat:
M.config/fish/config.fish | 14+++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/.config/fish/config.fish b/.config/fish/config.fish @@ -124,6 +124,12 @@ function take --argument number head -$number end +# Function to print the ipa (international phonetic pronunciation of a word) +# needs the translate-shell package +function ipa --argument word + trans -d $word | sed -n '2 p' +end + ### END OF FUNCTIONS ### @@ -217,12 +223,18 @@ alias ytv-best="youtube-dl -f bestvideo+bestaudio " # the terminal rickroll alias rr='curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash' -# Useful aliases +# useful aliases alias np='notepadqq' # notepadqq alias myip="curl http://ipecho.net/plain; echo" # get ip address alias wa="tungsten" alias pamcan="pacman" +# translate-shell and thesauromatic +alias syn="thesauromatic" +alias def="trans -d" +alias toeng="trans -j -show-original no -show-languages no -show-prompt-message no af:" +alias toafr="trans -j -show-original no -show-languages no -show-prompt-message no :af" + ### RANDOM COLOR SCRIPT ### # Install it from the AUR: shell-color-scripts colorscript -e panes