Skip to content

karthikiyengar/dotfiles-1

 
 

Repository files navigation

dotfiles

My dotfiles. Works seamlessly for both Mac OS X and Archlinux.

Installation

Oneliner

Using curl,

bash -c "$(curl -fsSL https://raw.githubusercontent.com/muralisc/dotfiles/master/install.sh)"

Or using wget

bash -c "$(wget https://raw.githubusercontent.com/muralisc/dotfiles/master/install.sh -O -)"

Or use Git

$ git clone https://github.com/muralisc/dotfiles.git ~/dotfiles
$ cd ~/dotfiles
$ ./install.sh
Add a ~/.shrc.local

After install complete, create a ~/.shrc.local to store the local settings. For e.g: my ~/.shrc.local typically contains something like:

attach_to_tmux <tmux_socketname> <tmux_session_name>
source /path/to/my/helper/functions/for/work
SONGS_DIRECTORY="path/to/my/songs"
export DOTFILES_MY_ENV_VAR   #nitialize the set of vars used in this repo
some_function_specific_for_this_machine() {
}

Personal git config

Create a ~/.extra file to do machine specific steps while installation. Got this idea from (mathiasbynens/dotfiles)[https://github.com/mathiasbynens/dotfiles]

# Git credentials
# Not in the repository, to prevent people from accidentally committing under my name
GIT_AUTHOR_NAME="Murali Suresh"
GIT_AUTHOR_EMAIL="murali@mailinator.com"
GIT_USERNAME="muralisc"
git config --global user.name "$GIT_AUTHOR_NAME"
git config --global user.email "$GIT_AUTHOR_EMAIL"
git config --global credential.https://github.com.username "$GIT_USERNAME"

Environment variables Populate in ~/.env.local

DOTFILES_ALARM_MEDIA
DOTFILES_LEDGER_FILE
DOTFILES_HABBITS
PANE_NAME

Features

  • c - a command line calculator e.g: c 2 ^ 3 * 2
  • decimal_to_binary - c doesn't do this
  • binary_to_decimal - c doesn't do this too
  • attach_to_tmux - is a helper function which automatically creates a tmux session if no exist, or attaches to existing one if one is already created.
  • transfer - Use https://transfer.sh to transfer files.
  • timeGoogle - Update time in linux from google
  • ms - music search for mpd
  • mp - music play for mpd
  • tt - time till e.g: tt tomorrow5am

My current Environment

About

my dotfiles !!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 46.9%
  • Lua 36.3%
  • Vim Script 14.8%
  • Python 2.0%