Skip to content

Commit

Permalink
Update bash config
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagosab committed Feb 3, 2013
1 parent 0253197 commit 341f613
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 35 deletions.
3 changes: 0 additions & 3 deletions bash-interactive.d/10variables
@@ -1,5 +1,2 @@
# variables
PROJECT_PARENT_DIRS[0]="$HOME/home/aulasfran/alunos"
PROJECT_PARENT_DIRS[1]="$HOME/home"
PROJECT_PARENT_DIRS[2]="$HOME/src"

3 changes: 2 additions & 1 deletion bash-interactive.d/19pgp
Expand Up @@ -28,5 +28,6 @@ if [ -f "${GPG_INFO}" ]; then
start_gpg_agent;
}
else
start_gpg_agent;
echo "GPG agent not running."
# start_gpg_agent;
fi
3 changes: 2 additions & 1 deletion bash-interactive.d/20ssh
Expand Up @@ -18,5 +18,6 @@ if [ -f "${SSH_ENV}" ]; then
start_ssh_agent;
}
else
start_ssh_agent;
# start_ssh_agent;
echo "SSH agent not running."
fi
4 changes: 4 additions & 0 deletions bash-interactive.d/40prompt
@@ -1,3 +1,7 @@
#!/bin/bash

#TODO:Clean up and setup git branch (__git_ps1)

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
Expand Down
5 changes: 4 additions & 1 deletion bash-interactive.d/50other
Expand Up @@ -2,11 +2,14 @@
stty stop undef
stty start undef

# check the window size after each command and, if necessary,
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# set PATH so it includes user's private bin if it exists
if [ -d ~/src/pyti/scripts ] ; then
PATH=~/src/pyti/scripts:"${PATH}"
fi
if [ -d ~/bin ] ; then
PATH=~/bin:~/src/pyti/scripts:"${PATH}"
fi
Expand Down
2 changes: 1 addition & 1 deletion bash.d/10variables
@@ -1,5 +1,5 @@
# -*- mode: shell-script -*-
export PYTHONPATH='/home/tiago/lib/python'
# export PYTHONPATH='/home/tiago/lib/python'
export DEBFULLNAME='Tiago Saboga'
export DEBEMAIL='tiagosaboga@gmail.com'
if [ $TERM == 'dumb' ]
Expand Down
2 changes: 1 addition & 1 deletion bash.d/60tex
@@ -1,4 +1,4 @@
# ----*---- tex/latex settings ----*----
# set my tex home
export TEXMFHOME=${HOME}/lib
# export TEXMFHOME=${HOME}/lib

27 changes: 0 additions & 27 deletions bash_aliases
Expand Up @@ -27,29 +27,6 @@ alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'

# from: http://github.com/relevance/etc/blob/master/bash/project_aliases.sh
# In ~/.bash_profile define a PROJECT_PARENT_DIRS array and source this script. e.g.
# PROJECT_PARENT_DIRS[0]="$HOME/src"
# PROJECT_PARENT_DIRS[1]="$HOME/work"
# source ~/.project_aliases.sh

if [ -z "${PROJECT_PARENT_DIRS[*]}" ]; then
echo "Define a PROJECT_PARENT_DIRS array in ~/.bash_profile"
fi

for PARENT_DIR in ${PROJECT_PARENT_DIRS[@]} ; do
if [ -d "$PARENT_DIR" ]; then
for PROJECT_DIR in $(/bin/ls $PARENT_DIR); do
if [ ! -z "$(which cd$PROJECT_DIR)" ]; then
continue # don't set alias if there is something already a command on the path with the same name
fi
if [ -d "$PARENT_DIR/$PROJECT_DIR" ]; then
alias "cd$PROJECT_DIR"="cd $PARENT_DIR/$PROJECT_DIR"
fi
done
fi
done

# Function which adds an alias to the current shell and to
# the ~/.bash_aliases file.
add-alias ()
Expand All @@ -65,10 +42,6 @@ add-alias ()
alias xine='xine --no-splash'
alias fuseiso='fuseiso -p'
alias la='ls -lA'
alias mld-c='mldonkey_command -p casa23'
alias screen='screen -xRR'
alias cdflavio='cd /home/tiago/home/filosofia/flavio'
alias cdmld='cd /srv/mldonkey/incoming/files'
alias cdspinoza='cd /home/tiago/home/filosofia/spinoza'
alias nmh='PATH=/usr/bin/mh:/home/tiago/bin:/home/tiago/bin:/usr/local/bin:/usr/bin:/bin:/usr/games '
alias dquilt='quilt --quiltrc=${HOME}/etc/quiltrc-dpkg '

0 comments on commit 341f613

Please sign in to comment.