Parth / dotfiles

518 stars 231 forks source link

Upgraded to ubuntu 20 #59

Closed dvdknaap closed 4 years ago

dvdknaap commented 4 years ago

Hi,

I've updated to ubuntu 20 and my terminal keeps crashing after some digging i've i changed my .zshrc

When i open up my terminal it worked again.

To test this i've created the following test: testing.sh

if [[ $? -ne 0 ]]
then
   # handle an error
fi 

When i run this in my terminal i get the following error ./testing.sh: 5: Syntax error: "fi" unexpected

Line 5 is the following line:

time_out () { perl -e 'alarm shift; exec @ARGV' "$@"; }

Run tmux if exists

if command -v tmux>/dev/null; then if [ "$DISABLE_TMUX" = "true" ]; then echo "DISABLE_TMUX=true" else [ -z $TMUX ] && exec tmux fi else echo "tmux not installed. Run ./deploy to configure dependencies" fi

Anyone got an idea already to fix this ?

dvdknaap commented 4 years ago

I've solved the issue by removing the tmux provided by ubuntu and installed the latest tmux version from source by following this article http://witkowskibartosz.com/blog/update-your-tmux-to-latest-version.html#.XrzrJnX7RhE