.zshrc: Fix lang bug, add rndanchars command, add video convertion commands, export composer to PATH, export android dev bins to PATH
This commit is contained in:
parent
2aa7a6246b
commit
a12aaaee40
24
.zshrc
24
.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"
|
||||
|
Loading…
Reference in New Issue
Block a user