Skip to content

Commit 3d9b50b

Browse files
committed
Fix small bugs in scripts
1 parent 22c389a commit 3d9b50b

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

apt/setup_sources.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ fi
6969
# https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu#register-the-ubuntu-net-backports-package-repository
7070
# add-apt-repository ppa:dotnet/backports
7171
# add-apt-repository ppa:linuxuprising/java
72-
add-apt-repository ppa:obsproject/obs-studio
72+
# add-apt-repository ppa:obsproject/obs-studio
7373
add-apt-repository ppa:phoerious/keepassxc
7474
# add-apt-repository ppa:thopiekar/openrgb
7575
if [ "$(hostnamectl chassis)" = "laptop" ]; then

ssh/setup_ssh_server.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ if [ "${EUID}" -ne 0 ]; then
66
exit 1
77
fi
88

9+
echo "Installing SSH server."
10+
apt-get update
11+
apt-get install openssh-server
12+
913
echo "Disabling password login."
1014
sed -i "s@#PasswordAuthentication yes@PasswordAuthentication no@g" "/etc/ssh/sshd_config"
1115
systemctl restart ssh

startup/agx-user-pre-startup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ if ! pgrep -u "${USER}" '^ssh-agent$' > /dev/null; then
2828
ssh-agent > "${HOME}/.ssh-agent-info"
2929
SSH_AGENT_UPDATED=true
3030
fi
31-
if [[ "${SSH_AGENT_PID}" == "" ]] || [ "${SSH_AGENT_UPDATED}" = true ]; then
31+
if [ "${SSH_AGENT_UPDATED}" = true ] || [[ "${SSH_AGENT_PID}" == "" ]]; then
3232
# echo "SSH agent configuration seems not to be loaded. Loading."
3333
eval "$(<"${HOME}/.ssh-agent-info")" > /dev/null
3434
fi

zsh/.zshrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ bindkey -M isearch " " magic-space
316316

317317
# Print stderr with red. For more see
318318
# https://github.com/sickill/stderred
319-
STDERRED_PATH="$HOME/Git/stderred/lib64/libstderred.so"
319+
STDERRED_PATH="$HOME/Git/stderred/build/libstderred.so"
320320
if [ -f $STDERRED_PATH ]; then
321321
export LD_PRELOAD="${STDERRED_PATH}${LD_PRELOAD:+:$LD_PRELOAD}"
322322
red_colored_text=$(tput setaf 9)

0 commit comments

Comments
 (0)