GitXplorerGitXplorer
i

dotfiles

public
2 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
e9cbe78d479388485699a74a065f8017f6791a9c

Clean up some outdated configs

iibrahima committed 2 years ago
Unverified
3eedc90e758a106eb2b3ed1cf2264aa1265c5f6f

Fix up emacs config.

iibrahima committed 10 years ago
Unverified
fda9f96fa9a402ba705164ed91e1ffb1aafb8681

Putting this script here was a bad idea.

iibrahima committed 10 years ago
Unverified
ce65d21c09f4a836596856738548cc25af0daf28

Merge branch 'master' of github.com:ibrahima/dotfiles

iibrahima committed 10 years ago
Unverified
fd9c72243ab0978303e05a7b7705af4ec484936b

Add a power menu script for use with Awesome

iibrahima committed 10 years ago
Unverified
9f1431655a18823b4baf975b11aac18d9b698462

Some adb shortcut functions for research.

iibrahima committed 10 years ago

README

The README file for this repository.

README

This is my collection of dotfiles, primarily bash scripts/aliases and emacs configuration. There is also a script, link.sh, for setting up symlinks on a new machine. I did this mainly for myself but also in the hopes that some people might find some of my bash scripts useful. Eventually I might also start doing useful things with emacs too but right now I'm just grabbing snippets off the internet that I find useful.

.bashrc

This started out with a stock Ubuntu .bashrc, but eventually I modularized it by splitting it into a directory .bashrc.d and executing the contents of the files in this directory. I highly recommend this kind of organization, otherwise it becomes unreadable pretty fast (bash is a convenient language because it's there but I would not mistake it for a good language).

.bashrc.d

I'll just point out some things that others might find useful here.

aliases.sh

I wrote a make() function which thus far I've been using as a drop-in replacement for make. It calls make with the arguments you pass it and checks the return code of make, and depending on success or failure plays an appropriate sound. It also automatically calls make with -jN where N is the number of CPUs your computer appears to have.

autojump.sh

Nothing interesting here other than the fact that I use autojump. It's a convenient way to jump around to commonly used directories.

awesomewm.sh

Just a stupid hack to make Java programs play nice with Awesome.

easynav.sh

Some convenient functions for navigating around deeply nested directory hierarchies.

pager.sh

Sets up less to pipe things through source-highlight, which means that less will have syntax highlighting, which is pretty awesome.

prompt.sh

My prompt looks like

user@host:pwd current time

$

The username is green, hostname is colored randomly based on the hostname, the directory is blue, and the time is underlined cyan. I use a 2 line prompt because it seems like a no-brainer; otherwise your prompt starts at a random place in the line which is visually confusing.

Having the time in the prompt is convenient if you ever realize you wanted to time a command after the fact. You should use time(1) otherwise but in a pinch it's very handy to be able to get an approximate time.