From a12aaaee40aef8646fe5870e5eaf987640067aad Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Wed, 19 Jun 2019 13:25:59 +0200 Subject: [PATCH] .zshrc: Fix lang bug, add rndanchars command, add video convertion commands, export composer to PATH, export android dev bins to PATH --- .zshrc | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index 8b6af7d..d9cccf9 100644 --- a/.zshrc +++ b/.zshrc @@ -2,7 +2,7 @@ # export PATH=$HOME/bin:/usr/local/bin:$PATH # Path to your oh-my-zsh installation. - export ZSH="/r/arisu/.oh-my-zsh" +export ZSH="/r/arisu/.oh-my-zsh" # Set name of the theme to load --- if set to "random", it will # load a random theme each time oh-my-zsh is loaded, in which case, @@ -71,7 +71,7 @@ source $ZSH/oh-my-zsh.sh # export MANPATH="/usr/local/man:$MANPATH" # You may need to manually set your language environment -# export LANG=en_US.UTF-8 +export LANG=en_US.UTF-8 # Preferred editor for local and remote sessions # if [[ -n $SSH_CONNECTION ]]; then @@ -97,5 +97,25 @@ source $ZSH/oh-my-zsh.sh alias dotgit='/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME' +rndanchars() { + openssl rand -base64 $1 | sed ':a;N;$!ba;s/\n//g' | sed 's/[+\/=]//g' | head -c $1 +} + +convert-tomov() { + ffmpeg -i "$1" -c:v dnxhd -c:a pcm_s24le -profile:v dnxhr_hq "$2" +} + +convert-tomp4() { + ffmpeg -i "$1" -c:v libx264 -pix_fmt yuv420p -profile:v high -movflags faststart -c:a aac -ar 48000 "$2" +} + +convert-todavinci() { + ffmpeg -i "$1" -map 0:v -map 0:a -c:v mpeg4 -qscale:v 1 -c:a pcm_s24le "$1.davinci.mov" +} + EDITOR=/usr/bin/nano VISUAL=$EDITOR + +export PATH="$PATH:$HOME/.composer/vendor/bin" + +PATH="$HOME/dev/android/platform-tools:$HOME/dev/android/bin:$PATH"