diff --git a/aliases.sh b/aliases.sh index 7dbec06..68ecdb2 100644 --- a/aliases.sh +++ b/aliases.sh @@ -1,12 +1,7 @@ -# fix problem with aur package: anki-official-binary-bundle 2.1.49-1 -alias anki='anki --no-sandbox' - # enable aliases for commands inside sudo # TOOD check this is safe alias sudo='sudo ' -alias gitknow='cd ~/knowledge-base&& git add . && git status && git commit -m update && git push' - alias e='nvim' alias pcm='pcmanfm . &' @@ -105,4 +100,3 @@ newsh() { chmod +x "$1" nvim "$1" +3 } - diff --git a/profile b/profile index 4947bca..be4f06f 100644 --- a/profile +++ b/profile @@ -7,12 +7,7 @@ if command -v ruby ; then export PATH="$ruby_path:$PATH" fi &> /dev/null -if command -v php ; then - phpcs_path=$(composer global config bin-dir --absolute) - export PATH="$phpcs_path:$PATH" -fi &> /dev/null - -export PATH="$PATH:$HOME/.local/bin" +export PATH="$PATH:$HOME/.local/bin:$ruby_path" # https://developers.google.com/web/tools/puppeteer/troubleshooting export CHROME_DEVEL_SANDBOX=/usr/lib/chromium/chrome-sandbox @@ -31,9 +26,9 @@ export AUTOENV_ENABLE_LEAVE=1 [ -f "$HOME/.src/autoenv/activate.sh" ] && . "$HOME/.src/autoenv/activate.sh" # z.sh - if [ -n "$ZSH_VERSION" ] && [ -f "$HOME/.z.lua/z.lua" ] ; then - eval "$(lua $HOME/.z.lua/z.lua --init zsh enhanced once)" - fi +if [ -f "$HOME/.z.lua/z.lua" ] ; then + eval "$(lua $HOME/.z.lua/z.lua --init zsh enhanced once)" +fi # custom aliases [ -f "$HOME/.config/profile/aliases.sh" ] && . "$HOME/.config/profile/aliases.sh"