Minor changes

This commit is contained in:
Damien Broqua 2022-02-04 11:36:41 +01:00
parent aa7483bd9f
commit 8e3f9a6ebb

View file

@ -81,6 +81,8 @@ plugins=(
yarn yarn
yarn-autocompletions yarn-autocompletions
node node
nvm
emoji
) )
#zstyle :omz:plugins:ssh-agent agent-forwarding on #zstyle :omz:plugins:ssh-agent agent-forwarding on
@ -119,9 +121,9 @@ zstyle -s ':completion:*:hosts' hosts _ssh_config
zstyle ':completion:*:hosts' hosts $_ssh_config zstyle ':completion:*:hosts' hosts $_ssh_config
if [ $TILIX_ID ] || [ $VTE_VERSION ]; then if [ $TILIX_ID ] || [ $VTE_VERSION ]; then
if [ -f "/etc/profile.d/vte.sh" ]; then if [ -f "/etc/profile.d/vte.sh" ]; then
source /etc/profile.d/vte.sh source /etc/profile.d/vte.sh
fi fi
fi fi
# Load dircolors # Load dircolors
@ -139,12 +141,14 @@ source ~/.aliases.private
neofetch neofetch
dh dh
#uname -a|ponysay -f pinkie
#uname -a|ponysay
ssh() { ssh() {
tmux rename-window "$*" tmux rename-window "$*"
command ssh "$@" command ssh "$@"
# echo "Counting to 60" # echo "Counting to 60"
# sleep 60 && exit # sleep 60 && exit
tmux rename-window "zsh" tmux rename-window "zsh"
} }
@ -165,3 +169,11 @@ if [ ! -S ${SSH_AUTH_SOCK} ]; then
eval $(ssh-agent -a ${SSH_AUTH_SOCK} 2> /dev/null) eval $(ssh-agent -a ${SSH_AUTH_SOCK} 2> /dev/null)
ssh-add ssh-add
fi fi
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
if [ -z $DISPLAY ] && [ "$(tty)" == "/dev/tty1" ]; then
export MOZ_ENABLE_WAYLAND=1
exec sway
fi