Various personal configuration files (X, bash, tmux, vim etc.)
Everything below assumes Arch Linux, but application specific parts should work on other *nixes with minimal modifications.
I have a simple .bashrc
with some useful features:
- Start X by logging into
tty1
, no need for fancy display managers like GDM (see.xinitrc
section below). - Tab auto completion for
sudo
andgo
. vim
as$EDITOR
.- Some useful functions and aliases.
I have a very simple .xinitrc
that sets the XDG session type to X11, tells Qt to use the GTK theme and starts the Gnome session. To use it, simply copy it to your $HOME
and start X with startx
.
Install powerline from the official repositories, and powerline-fonts-git from AUR.
$ pacman -S powerline powerline-vim
$ packer -S powerline-fonts-git
Prepend the following to your .bashrc
:
# Powerline config
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
. /usr/lib/python/3.7/site-packages/powerline/bindings/bash/powerline.sh
I use the basic version of amix's ultimate Vim configuration.
Sane keybindings, some basic plugins like yank (for copy/paste) and resurrect (to save/restore tmux state).
- First, install tpm, the tmux plugin manager:
$ git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
- Copy
.tmux.conf
from this repository to~/.tmux.conf
- Run
tmux
and install all plugins withCtrl-A + I
(that's capitali
).
I use the "Chalk" theme from the excellent Gogh.
- Install Gogh. Arch Linux users can use the AUR package.
- Run
gogh
in a terminal. - Type
23
and hit enter. - Right click anywhere in terminal and choose
Profiles -> Chalk
.
- If you installed
powerline-fonts-git
, I recommendDroid Sans Mono for Powerline Regular
in terminal settings.
If you followed the steps for powerline, tmux and Gnome Terminal, it should look like this:
You can also run the colors
function from .bashrc
to see a nice grid of your current terminal color scheme: