This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone -b windows --bare https://github.com/ahmad-alwazzan/dotfiles.git $HOME/.cfg | |
function config { | |
/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@ | |
} | |
mkdir -p .config-backup | |
config checkout | |
if [ $? = 0 ]; then | |
echo "Checked out config."; | |
else | |
echo "Backing up pre-existing dot files."; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install xclip for some linux distros for tmux copy/paste to work: | |
#sudo apt install xclip | |
git clone --bare https://github.com/ahmad-alwazzan/dotfiles.git $HOME/.cfg | |
function config { | |
/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@ | |
} | |
mkdir -p $HOME/.config-backup | |
config checkout | |
if [ $? = 0 ]; then | |
echo "Checked out config."; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo apt update | |
sudo apt install -y git build-essential pkg-config libevent-dev libncurses5-dev automake | |
rm -fr /tmp/tmux | |
git clone https://github.com/tmux/tmux.git /tmp/tmux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
paste this line in your bashrc | |
export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0 |