diff --git a/aliases.sh b/aliases.sh index 70d2c9e..765c6c8 100644 --- a/aliases.sh +++ b/aliases.sh @@ -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" } diff --git a/profile b/profile index c8bf6d0..0d2a11d 100644 --- a/profile +++ b/profile @@ -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