All my configuration is stored in my github account (https://github.com/mnebuerquo/dotfiles) so I can just clone my repo and run my install script and my home is configured to use all my tools. I install my dotfiles repo to my home in any server I set up, so it's convenient and I don't have to switch back to vanilla vim and tmux controls.
I just started using JuiceSSH from my Nexus 6, and I want to be able to attach to my tmux sessions from my phone.
The problem comes in when I use tmux. The terminal behavior on JuiceSSH is different from that of something like Gnome Terminal on Ubuntu. Juice seems to be sending ctrl+j, while other terms send ctrl+m.
This isn't a problem so far except in tmux. I'm using the vim+tmux navigator (https://github.com/christoomey/vim-tmux-navigator) to bind ctrl+h, ctrl+j, ctrl+k, ctrl+l to navigate between panes in vim and tmux. When I hit the enter key on my phone keyboard, it navigates to the next lower pane in tmux (C-j). When I do ctrl+m from any device, I get the carraige return that I'm looking for. When I am not using my own tmux.conf, where C-j is not bound, then the enter key works on my phone with JuiceSSH.
What I want to do is change my terminal configuration in my .bashrc or something to fix this so it works with tmux regardless of what my terminal sends for the enter key.