Compare commits

..

2 Commits

Author SHA1 Message Date
Ray Elliott 1e653af462 tidy up 2020-05-18 19:35:13 +01:00
Ray Elliott 9831ab8647 add re() function 2020-05-18 19:35:01 +01:00
2 changed files with 11 additions and 6 deletions

View File

@ -66,6 +66,10 @@ smartresize() {
mogrify -path "$3" -filter Triangle -define filter:support=2 -thumbnail "$2" -unsharp 0.25x0.08+8.3+0.045 -dither None -posterize 136 -quality 82 -define jpeg:fancy-upsampling=off -define png:compression-filter=5 -define png:compression-level=9 -define png:compression-strategy=1 -define png:exclude-chunk=all -interlace none -colorspace sRGB "$1"
}
re() {
git clone ssh://git@git.rayelliott.dev:3222/rayelliott/"$1".git $2
}
mc() {
mkdir "$1" && cd "$1"
}

13
profile
View File

@ -1,10 +1,11 @@
export SHELL_CONFIG="$SHELL_CONFIG:.profile"
export EDITOR=/usr/bin/vim
export BROWSER=/usr/bin/qutebrowser
export PATH=~/.npm-global/bin:$PATH
ruby_path=$(ruby -r rubygems -e "puts Gem.user_dir")
export PATH=$ruby_path/bin:$PATH
export PATH=~/.bin:~/.bin/bin:~/.local/bin:$PATH
ruby_path=$(ruby -r rubygems -e "puts Gem.user_dir")/bin
yarn_path=$(yarn global bin)
export PATH="$HOME/.bin:$HOME/.local/bin:$yarn_path:$ruby_path:$PATH"
# https://developers.google.com/web/tools/puppeteer/troubleshooting
export CHROME_DEVEL_SANDBOX=/usr/lib/chromium/chrome-sandbox
@ -23,11 +24,11 @@ stty -ixon
export AUTOENV_ENV_FILENAME=.in
export AUTOENV_ENV_LEAVE_FILENAME=.out
export AUTOENV_ENABLE_LEAVE=1
source "$HOME/.src/autoenv/activate.sh"
[ -f "$HOME/.src/autoenv/activate.sh" ] && . "$HOME/.src/autoenv/activate.sh"
# custom aliases
[ -f "$HOME/.config/profile/aliases.sh" ] && . "$HOME/.config/profile/aliases.sh"
[ -f "$HOME/.config/broot/launcher/bash/br" ] && source /home/ray/.config/broot/launcher/bash/br
[ -f "$HOME/.config/broot/launcher/bash/br" ] && . /home/ray/.config/broot/launcher/bash/br
# vim: filetype=sh