diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-10-16 21:26:22 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-10-16 21:26:22 +0200 |
commit | 2a55e6be7a8c2e6206874123ee7de7d433e33d0c (patch) | |
tree | f84e16a247a5c6698add54f52a9d47307fcb1379 | |
parent | 4cc108aba78ad5748f3de5cfa0155196199061ca (diff) | |
parent | 6e3c07b70a1f3082afa2115ccac790d859d83b7b (diff) |
Merge branch 'main' of db:dotfiles
-rwxr-xr-x | bin/common/cx | 2 | ||||
-rwxr-xr-x | bin/common/gt | 1 | ||||
-rw-r--r-- | config/essentials/shell/functions.sh | 2 | ||||
-rw-r--r-- | config/home/.zshenv | 2 |
4 files changed, 5 insertions, 2 deletions
diff --git a/bin/common/cx b/bin/common/cx index 88fb817..cbabaaf 100755 --- a/bin/common/cx +++ b/bin/common/cx @@ -1,2 +1,2 @@ #!/bin/sh -[ -x "$1" ] && chmod -x "$1" || chmod +x "$1" +[ -x "$1" ] && chmod u-x "$1" || chmod u+x "$1" diff --git a/bin/common/gt b/bin/common/gt index d2ae3e5..78cc913 100755 --- a/bin/common/gt +++ b/bin/common/gt @@ -56,6 +56,7 @@ while getopts ":a:c:f:lsheu" opt; do repo="$(git rev-parse --show-toplevel)" remote_url="$(git remote show -n origin | awk '/^ Fetch/ {print $NF}')" + # TODO: check if remote_url is not empty if grep "^$repo " "$REPOS" >/dev/null 2>&1; then printf >&2 'added already.\n' diff --git a/config/essentials/shell/functions.sh b/config/essentials/shell/functions.sh index 030778f..b7bb5fd 100644 --- a/config/essentials/shell/functions.sh +++ b/config/essentials/shell/functions.sh @@ -83,7 +83,7 @@ remove_audio() { ffmpeg -i "$1" -cpu-used -$(nproc) -deadline realtime -c copy - nasg() { smbclient //192.168.178.24/Public/ -D ENFANTS/Luca/tmp -N -c "get $1"; } trll() { printf "%s\n" "$1" | trl 2>/dev/null; } vidlen() { date -u -d @"$(ffprobe -show_entries format=duration -v quiet -of csv="p=0" -i "$1")" +'%T'; } -pcp() { readlink -f "$1" | clipp; } +pcp() { readlink -f "$1" | tr -d '\n' | clipp; } ipc() { diff --git a/config/home/.zshenv b/config/home/.zshenv index a2f26ed..953ac22 100644 --- a/config/home/.zshenv +++ b/config/home/.zshenv @@ -99,6 +99,8 @@ export PATH="$PATH:$GOPATH/bin" export PLAN9=/usr/lib/plan9 export PATH="$PATH:$PLAN9/bin" +export LD_LIBRARY_PATH=/usr/local/lib/ + export MAKEFLAGS="-j$(nproc)" export VAKKEN="$HOME/docs/school/2024-2025" |