Bash (colors & ssh agent), git_auto and xinit(sshag)
This commit is contained in:
parent
fd422e9e34
commit
d99cbf8a4e
11
bashrc
11
bashrc
|
@ -37,8 +37,16 @@ fi
|
|||
#PS1="\[$RED\u$DFT$white@$magenta\h $DFT>>$CYAN\w $DFT\]"
|
||||
#PS1="\[$RED\]\u\[$DFT$white\]@\[$magenta\]\h \[$DFT\]>>\[$CYAN\]\w \[$DFT\]"
|
||||
#PROMPT_COMMAND='history -a;echo -en "\033[m\033[38;5;2m"$(( `sed -nu "s/MemFree:[\t ]\+\([0-9]\+\) kB/\1/p" /proc/meminfo`/1024))"\033[38;5;22m/"$((`sed -nu "s/MemTotal:[\t ]\+\([0-9]\+\) kB/\1/Ip" /proc/meminfo`/1024 ))MB"\t\033[m\033[38;5;55m$(< /proc/loadavg)\033[m"'
|
||||
PS1='\[\e[0;36m\] \T \[\e[1;30m\][\[\e[1;34m\]\u@\H\[\e[1;30m\]\[\e[0;32m\]\[\e[1;30m\]] \[\e[1;37m\]\w\[\e[0;37m\] \n$ '
|
||||
|
||||
if [ "$HOSTNAME" == "chuck" ]; then
|
||||
MY_HOST_COL='[31m' #ugly !
|
||||
else
|
||||
MY_HOST_COL='[34m'
|
||||
fi
|
||||
|
||||
PS1='\[\e[0;36m\]\T \[\e[1;30m\][\[\e$MY_HOST_COL\]\u@\H\[\e[1;30m\]\[\e[0;32m\]\[\e[1;30m\]] \[\e[1;37m\]\w\[\e[0;37m\] \n$ '
|
||||
|
||||
#PS1='\[\e[0;36m\] \T \[\e[1;30m\][\[\e$MY_HOST_COL\]\u@\H\[\e[1;30m\]\[\e[0;32m\]\[\e[1;30m\]] \[\e[1;37m\]\w\[\e[0;37m\] \n$ '
|
||||
|
||||
|
||||
#####LES ALIAS UTILES
|
||||
|
@ -99,6 +107,7 @@ alias mfilms='cd /dev/shm && mkdir films && sshfs frank@vi-di.fr:/media/ films/'
|
|||
|
||||
alias upgrub='sudo grub-mkconfig -o /boot/grub/grub.cfg'
|
||||
|
||||
alias ssh='ssh-add -l >/dev/null || ssh-add ~/.ssh/id_rsa.auth && unalias ssh; ssh'
|
||||
|
||||
#MONITOR_PATH=~/Programmation/Utils/monitor.sh
|
||||
#alias dual='$MONITOR_PATH dual'
|
||||
|
|
|
@ -10,7 +10,7 @@ magenta='\033[35m'
|
|||
DFT='\033[0m'
|
||||
white='\033[37m'
|
||||
|
||||
for gitrepo in `find ./ -maxdepth 3 -type d -name ".git" | sed 's/\/.git\+$//'`;
|
||||
for gitrepo in `find ./ -maxdepth 4 -type d -name ".git" | sed 's/\/.git\+$//'`;
|
||||
do
|
||||
cd $gitrepo
|
||||
echo $gitrepo
|
||||
|
|
Loading…
Reference in a new issue