Skip to content

💻⚙️Various configuration files (X, bash, tmux, vim etc.)

License

Notifications You must be signed in to change notification settings

dcelasun/dotfiles

Repository files navigation

dotfiles

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.

.bashrc

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 and go.
  • vim as $EDITOR.
  • Some useful functions and aliases.

.xinitrc

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.

Powerline for Bash

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

Vim Configuration

I use the basic version of amix's ultimate Vim configuration.

Tmux 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 with Ctrl-A + I (that's capital i).

Gnome Terminal Theme

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.

Gnome Terminal Font

  • If you installed powerline-fonts-git, I recommend Droid Sans Mono for Powerline Regular in terminal settings.

Screenshots

If you followed the steps for powerline, tmux and Gnome Terminal, it should look like this:

Terminal

You can also run the colors function from .bashrc to see a nice grid of your current terminal color scheme:

Colors

About

💻⚙️Various configuration files (X, bash, tmux, vim etc.)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published