diff options
-rwxr-xr-x | bin/common/gt-cmd | 7 | ||||
-rwxr-xr-x | bin/extra/confirm | 16 | ||||
-rw-r--r-- | config/essentials/shell/functions.sh | 2 | ||||
-rw-r--r-- | config/essentials/zsh/.zshrc | 5 | ||||
-rwxr-xr-x | config/home/.xprofile | 2 |
5 files changed, 15 insertions, 17 deletions
diff --git a/bin/common/gt-cmd b/bin/common/gt-cmd index 56b8df6..ebfe301 100755 --- a/bin/common/gt-cmd +++ b/bin/common/gt-cmd @@ -34,8 +34,11 @@ then if ! ssh-add -L | grep "$(cat "$Keyfile")" > /dev/null then - printf '%s: '\''%s'\'' not in ssh-agent\n' "$repo_pretty" "$r" - exit 1 + if ! keyadd "$r" > /dev/null 2>&1 + then + printf '%s: '\''%s'\'' not in ssh-agent\n' "$repo_pretty" "$r" + exit 1 + fi fi fi diff --git a/bin/extra/confirm b/bin/extra/confirm index 630d701..7c653b9 100755 --- a/bin/extra/confirm +++ b/bin/extra/confirm @@ -1,12 +1,6 @@ #!/bin/sh - -read_char () -{ - old_stty_cfg=$(stty -g 2> /dev/null) - stty raw -echo 2> /dev/null - dd ibs=1 count=1 2> /dev/null - stty "$old_stty_cfg" 2> /dev/null -} - ->&2 printf "%s " "$1" -read_char | grep -q "[yY]" +trap 'exit' INT +old_stty_cfg=$(stty -g 2> /dev/null) +stty raw -echo 2> /dev/null +dd ibs=1 count=1 2> /dev/null +stty "$old_stty_cfg" 2> /dev/null diff --git a/config/essentials/shell/functions.sh b/config/essentials/shell/functions.sh index 39c5e19..e348aa0 100644 --- a/config/essentials/shell/functions.sh +++ b/config/essentials/shell/functions.sh @@ -399,6 +399,6 @@ trclipo() category="$(printf "music\nanime\nmovies\nshows\nother\nsoftware\ngames\nisos\nbooks\n" | fzf)" [ "$category" ] || return 2 - transmission-remote debuc.com -a -w "/downloads/$choice" "$magnet" + transmission-remote autumn -a -w "/downloads/$choice" "$magnet" } diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index 3937743..4a71a2e 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -1,7 +1,8 @@ #!/bin/zsh -PATH="$PATH:$HOME/proj/metac/build" -PATH="$PATH:$HOME/proj/metac/misc" +export PATH="$PATH:$HOME/proj/metac/build" +export PATH="$PATH:$HOME/proj/metac/misc" +export PATH="$PATH:$HOME/src/4coder" if { [ "$TTY" = "/dev/tty1" ] || [ "$TTY" = "/dev/tty8" ]; } && [ "$(id -u)" -ne 0 ]; then eval "$(keychain --dir "$XDG_CONFIG_HOME/keychain" --eval --quiet --agents ssh,gpg)" diff --git a/config/home/.xprofile b/config/home/.xprofile index 23cbb0e..e2b9e6c 100755 --- a/config/home/.xprofile +++ b/config/home/.xprofile @@ -38,4 +38,4 @@ fi st -e "sh" "-c" "pgrep tmux && tmux a || tmux" & xset s off -dpms & -printf '%s\t%s' "$(date +%y_%m_%d-%T )" "$DISPLAY" >> ~/.x_displays.log & +saveself & |