Update config.fish

This commit is contained in:
Alice Gaudon 2021-05-28 11:29:20 +02:00
parent cfb3a0ccbc
commit e0deadf5cd

View File

@ -1,3 +1,4 @@
set fish_greeting ''
#set -x XDG_CURRENT_DESKTOP=kde #set -x XDG_CURRENT_DESKTOP=kde
if test ! $DISPLAY && test $XDG_VTNR -eq 1 if test ! $DISPLAY && test $XDG_VTNR -eq 1
@ -8,13 +9,15 @@ end
# LANG # LANG
set -x LANG en_US.UTF-8 set -x LANG en_US.UTF-8
# PATH # PATH
set -x PATH "$PATH:"(ruby -e 'puts Gem.user_dir')"/bin" # Ruby #set -x PATH "$PATH:"(ruby -e 'puts Gem.user_dir')"/bin" # Ruby
set -x PATH "$PATH:$HOME/.composer/vendor/bin" # Composer set -x PATH "$PATH:$HOME/.composer/vendor/bin" # Composer
set -x PATH "$HOME/dev/android/platform-tools:$HOME/dev/android/bin:$PATH" # Android platform tools set -x PATH "$HOME/dev/android/platform-tools:$HOME/dev/android/bin:$PATH" # Android platform tools
set -x PATH "$PATH:$HOME/.rvm/bin" # Ruby rvm set -x PATH "$PATH:$HOME/.rvm/bin" # Ruby rvm
set -x PATH "$HOME/.node_modules/bin:$PATH"
set -x PATH "node_modules/.bin:$PATH"
set -x npm_config_prefix ~/.node_modules
set -x NODE_PATH ~/.node_modules/lib/node_modules
# Editor # Editor
set -x EDITOR micro set -x EDITOR micro
@ -22,9 +25,8 @@ set -x VISUAL $EDITOR
## Aliases ## ## Aliases ##
alias l='ls -la' alias l='ls -la --group-directories-first'
alias dotgit='git --git-dir=$HOME/dotfiles/ --work-tree=$HOME' alias dotgit='git --git-dir=$HOME/dotfiles/ --work-tree=$HOME'
alias authy="/usr/bin/electron4 --app /usr/lib/authy/app.asar"
alias syslog="sudo journalctl -f | ccze -A" alias syslog="sudo journalctl -f | ccze -A"
function journal -w 'systemctl status' function journal -w 'systemctl status'
@ -48,10 +50,16 @@ function convert-tomp4
end end
function convert-todavinci function convert-todavinci
set name "$1" echo "> $argv[2].davinci.mov"
shift
ffmpeg -i "$name" "$argv" -q:v 1 -q:a 1 -map 0 -c:v mpeg4 -c:a pcm_s24le "$name.davinci.mov" set rate ""
set args $argv[3..-1]
if test $argv[3] = "-r"
set rate -r $argv[4]
set args $argv[5..-1]
end
ffmpeg $rate -i "$argv[1]" $args -q:v 1 -q:a 1 -map 0 -c:v mpeg4 -c:a pcm_s24le "$argv[2].davinci.mov"
end end
# Example: `pngs-to-mov "%04d" 60 render` renders images with format 0000.png at 60 fps to render.mov # Example: `pngs-to-mov "%04d" 60 render` renders images with format 0000.png at 60 fps to render.mov