From 95c4d5739124b09c16b72e8814c43fd7ce7c648b Mon Sep 17 00:00:00 2001 From: Martin Blazik Date: Thu, 3 Sep 2020 06:10:56 +0200 Subject: [PATCH] Reload application database script --- scripts/bashrc-workspace | 5 +++++ scripts/update-desktop-apps.sh | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100755 scripts/update-desktop-apps.sh diff --git a/scripts/bashrc-workspace b/scripts/bashrc-workspace index 0d1e222..4b61928 100644 --- a/scripts/bashrc-workspace +++ b/scripts/bashrc-workspace @@ -1,6 +1,11 @@ # must be included from $HOME/.bashrc # use source /bashrc-workspace +# log from just one docker-compose service, remove initial name of service up to '|' character +function dcls { + dc logs --tail=all --no-color $1 | sed -r 's/^[^|]+[|] //' +} + # https://devblogs.microsoft.com/commandline/sharing-ssh-keys-between-windows-and-wsl-2/ # https://medium.com/@pscheit/use-an-ssh-agent-in-wsl-with-your-ssh-setup-in-windows-10-41756755993e diff --git a/scripts/update-desktop-apps.sh b/scripts/update-desktop-apps.sh new file mode 100755 index 0000000..8c5df0a --- /dev/null +++ b/scripts/update-desktop-apps.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# $HOME/.local/share/applications/*.desktop +# /usr/share/applications/*.desktop + +set -x + +sudo update-desktop-database +