Initial Linux Setup

Written on


Installing tmux

I usually spend a lot of time here, to get the perfect setup, something like - tmux + tpm + zsh + tmux-resurrect + zsh autocomplete. This time I’m just going for the vanilla experience, just tmux alone. One of the reasons is I keep finding myself with new OS installs, new temp laptops, new servers, and I can’t afford to set it up in every place, so I’m going to try to limit my productivity tools to the minimum.

One alias that’s helpful is

alias tt='tmux new -As0'

It just means that we will always stay in the same tmux session

General Plugins and other things:

Gnome Extensions:

Again, the objective here is to limit the tools I use on a fresh setup

Settings to change:
gnome-terminal --geometry 1x1+1920+0 --full-screen
If arrow keys in vi are not working, install vim
sudo apt-get install vim
pacman -S vim
Change default git editor
git config --global core.editor "vi"
To install deb:
sudo dpkg -i *.deb  
sudo apt-get -f install 

Useful bash aliases:

To make auto complete on tab press case insensitive
set completion-ignore-case on
Adds aliases
function addAlias(){
    echo "alias $1=\"$2\"" >> ~/.bashrc;
    tail -n 1 ~/.bashrc;
    . ~/.bashrc;
    }
Deletes aliases
unction deleteAlias(){
    sed -i "/alias $1=/d" ~/.bashrc
    }
handy program to extract
extract() {
    if [ -f $1 ] ; then
        case $1 in
            *.tar.bz2)   tar xvjf $1     ;;
            *.tar.gz)    tar xvzf $1     ;;
            *.bz2)       bunzip2 $1      ;;
            *.rar)       unrar x $1      ;;
            *.gz)        gunzip $1       ;;
            *.tar)       tar xvf $1      ;;
            *.tbz2)      tar xvjf $1     ;;
            *.tgz)       tar xvzf $1     ;;
            *.zip)       unzip $1        ;;
            *.Z)         uncompress $1   ;;
            *.7z)        7z x $1         ;;
            *.xz)        tar \-xf $1         ;;
            *)           echo "'$1' cannot be extracted via >extract<" ;;
        esac
    else
        echo "'$1' is not a valid file!"
    fi
}



Tags · Tech, Linux, Setup