From 3694016696b37a4ce1eb6610126e1fd644e65e8b Mon Sep 17 00:00:00 2001 From: ray Date: Sat, 22 Jan 2022 16:09:20 +0000 Subject: [PATCH 1/2] add php composer bin to path --- profile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/profile b/profile index be4f06f..94996a7 100644 --- a/profile +++ b/profile @@ -7,7 +7,12 @@ if command -v ruby ; then export PATH="$ruby_path:$PATH" fi &> /dev/null -export PATH="$PATH:$HOME/.local/bin:$ruby_path" +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" # https://developers.google.com/web/tools/puppeteer/troubleshooting export CHROME_DEVEL_SANDBOX=/usr/lib/chromium/chrome-sandbox From 5d15bc93693ea2b13f2ed7092b63ae3c90cb4c2f Mon Sep 17 00:00:00 2001 From: ray Date: Fri, 4 Mar 2022 17:40:57 +0000 Subject: [PATCH 2/2] update --- aliases.sh | 6 ++++++ profile | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/aliases.sh b/aliases.sh index 68ecdb2..7dbec06 100644 --- a/aliases.sh +++ b/aliases.sh @@ -1,7 +1,12 @@ +# 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 . &' @@ -100,3 +105,4 @@ newsh() { chmod +x "$1" nvim "$1" +3 } + diff --git a/profile b/profile index 94996a7..4947bca 100644 --- a/profile +++ b/profile @@ -31,9 +31,9 @@ export AUTOENV_ENABLE_LEAVE=1 [ -f "$HOME/.src/autoenv/activate.sh" ] && . "$HOME/.src/autoenv/activate.sh" # z.sh -if [ -f "$HOME/.z.lua/z.lua" ] ; then - eval "$(lua $HOME/.z.lua/z.lua --init zsh enhanced once)" -fi + if [ -n "$ZSH_VERSION" ] && [ -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"