Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2007-01-28 22:54:03

  harry666t - Członek DUG

harry666t
Członek DUG
Zarejestrowany: 2007-01-28

Wklej swój .{bash|csh|$YOUR_SHELL}rc

Bardzo prosta i pożyteczna zabawa, umieszczasz w tym temacie zawartość swojego pliku inicjującego interaktywną powłokę =]

Oto mój .bashrc:

Kod:


# If not running interactively, don't do anything:
[ -z "$PS1" ] && return

# don't put duplicate lines in the history. See bash(1) for more options
#export HISTCONTROL=ignoredups

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

# enable color support of ls and also add handy aliases
if [ "$TERM" != "dumb" ]; then
    eval "`dircolors -b`"
    alias ls='ls --color=auto'
fi

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" -a -r /etc/debian_chroot ]; then
    debian_chroot=$(cat /etc/debian_chroot)
fi


# color prompt ^^
PS1='${debian_chroot:+($debian_chroot)}[33[01;32m]u@h[33[00m]:[33[01;34m]w[33[00m]$ '
#PS1='What now, Master?'


# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
    PROMPT_COMMAND='echo -ne "33]0;${USER}@${HOSTNAME}: ${PWD}07"'
    ;;
*)
    ;;
esac


# blah blah blah. the PATH.

export PATH='/bin:/usr/local/bin:/usr/bin:/usr/bin/X11:/usr/games:/home/harry/bin'



# Some applications read the EDITOR variable to determine your
# favourite text editor. So uncomment the line below and enter the
# editor of your choice :-)
export EDITOR=/usr/bin/emacs
export CVSEDITOR=/usr/bin/emacs

# For some news readers it makes sense to specify the NEWSSERVER variable here
#export NEWSSERVER=your.news.server

# If you want to use a Palm device with Linux, uncomment the two lines
# below.  For some (older) Palm Pilots, you might need to set a lower
# baud rate e.g. 57600 or 38400; lowest is 9600 (very slow!)

#export PILOTPORT=/dev/pilot
#export PILOTRATE=115200

#aliases

# removing tmp or unnecessary files...
alias rmbin='rm -i ~/bin/*~'

# running X
alias x='startx -- '

# damn that ppp
alias ppp='~/bin/orange'
alias pppstats='/sbin/ifconfig ppp0'
alias q='while true; do sleep 60; ppp; done'

# aliases for software
alias em='emacs -nw'
alias eb='emacs -nw ~/.bashrc'
alias bug='reportbug'
alias aview='asciiview'
alias search='apt-cache search'

# aliases for ssh connections ^_^
alias sfnet='ssh xxxxx@shell.sourceforge.net'
alias phenix='ssh xxxxx@phenix.rootshell.be'
alias ss='ssh -X root@localhost'
alias ako='ssh harry@ako'

# becoming root ;D
if [ -x /usr/bin/sux ] ; then
  alias op='sudo sux -'
else
  alias op='sudo su -'
fi
# there is a program named op, it acts a little like sudo.
# I've discovered it after I got used to this alias.


# more software aliases
alias post='weblog-post'
alias e='$EDITOR'
alias o='most'
alias cedega='cvscedega'




# sometimes I talk to bash. although "FUCK: command not found" is cool,
# it is also fun to hear my shell respond to me like human being.
alias fuck='echo "yeah fuck$*"'
alias WTF='echo "Dont be so surprised. It was told that it wont work."'
alias shit='echo "
                  Gufno jest zawsze, zawsze i fszendzie,
                      gufno jest w tobie i we mnie"'
alias yeah='echo "Im happy too ^^"'
alias wasup='echo "Im ok. And you?"'
alias why='echo "Because."'
alias bad='echo "Bad command or filename."'
alias good='echo "Excellent command or filename!"'



# some ls aliases
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'

# other coreutils aliases
alias ..='cd ..'

# speak to me...
alias ts='festival --tts'
# use "command | ts", where command is a program that produces output to stdout

Mówiąc szczerze jest to hybryda standardowego .bashrc z suse 10.1 i debiana sarge, aczkolwiek większość tych aliasów wymyśliłem ja =]

Szczególnie
$ fuck this goddamn shitty $0
pomaga się czasem odstresować =]


[ /\/\/\ o_0 ----->>>       Ascii Art Userbar User ]

"steal and steal and steal some more and give it to all your friends and keep on stealin'"
- Reznor

Offline

 

#2  2007-01-29 19:49:03

  rychu - elektryk dyżurny

rychu
elektryk dyżurny
Skąd: gdańsk
Zarejestrowany: 2004-12-28

Re: Wklej swój .{bash|csh|$YOUR_SHELL}rc

czegoś mi tu brakuje:

alias md='mkdir'
alias rd='rmdir'
alias df='df -h'
alias du='du -h'
alias mkisofs='mkisofs -q -J -R -r'
alias cdrecord='cdrecord gracetime=3'[/quote]


linux regd. user #248790

Offline

 

#3  2007-01-29 22:08:32

  Lorenzo - Moderator

Lorenzo
Moderator
Zarejestrowany: 2005-12-23

Re: Wklej swój .{bash|csh|$YOUR_SHELL}rc

Skoro mamy sie chwalić ;-)

dominik@m31-3:~$ grep -v '#' .bashrc

[ -z "$PS1" ] && return


shopt -s checkwinsize

if [ "$TERM" != "dumb" ]; then
    eval "`dircolors -b`"
    alias ls='ls --color=auto'
fi


if [ -z "$debian_chroot" -a -r /etc/debian_chroot ]; then
    debian_chroot=$(cat /etc/debian_chroot)
fi

case "$TERM" in
xterm-color)
    PS1='${debian_chroot:+($debian_chroot)}[33[01;32m]u@h[33[00m]:[33[01;34m]w[33[00m]$ '
    ;;
*)
    PS1='${debian_chroot:+($debian_chroot)}u@h:w$ '
    ;;
esac

PS1='${debian_chroot:+($debian_chroot)}[33[01;32m]u@h[33[00m]:[33[01;34m]w[33[00m]$ '

case "$TERM" in
xterm*|rxvt*)
    PROMPT_COMMAND='echo -ne "33]0;${USER}@${HOSTNAME}: ${PWD}07"'
    ;;
*)
    ;;
esac

export LANG='pl_PL ISO-8859-2'
export LC_ALL='pl_PL'

export CHOST="i586-pc-linux-gnu"
export CFLAGS="-march=k6-2 -Os -pipe -fomit-frame-pointer"
export CXXFLAGS="-march=k6-2 -Os -pipe -fomit-frame-pointer"
export MACHTYPE='i586-pc-linux-gnu'
alias make='make -e'

vman() { man $* | col -b | vless -c 'set ft=man nomod nolist' -; }

alias less='vless'
export XLIB_SKIP_ARGB_VISUALS=1


PATH=/usr/local/java/jdk1.6.0/:"${PATH}"
PATH=/usr/local/java/jdk1.6.0/bin/:"${PATH}"
PATH=/usr/local/java/jdk1.6.0/lib/:"${PATH}"

if ! [ -f /tmp/.disk.sh.PID ] ; then
        ./src/disk.sh &
fi[/quote]

//EDIT:
Jeszcze dla roota mam (więcej pod nim kompiluje)

Kod:

export CHOST="i586-pc-linux-gnu"
export CXXHOST="i586-pc-linux-gnu"
export CFLAGS="-march=k6-2 -Os -pipe -fomit-frame-pointer"
export CXXFLAGS="-march=k6-2 -Os -pipe -fomit-frame-pointer"
export MACHTYPE='i586-pc-linux-gnu'
export HOSTTYPE='i586'

alias make='make -e'

#dopełnienie TAB'em nazw pakietów
if [ -f /etc/bash_completion ] ; then
    . /etc/bash_completion
fi

Offline

 

#4  2007-01-30 12:19:10

  MG_Peter - Członek DUG

MG_Peter
Członek DUG
Skąd: Gliwice
Zarejestrowany: 2005-07-29

Re: Wklej swój .{bash|csh|$YOUR_SHELL}rc

ja w sumie tylko z kolorowego prompta korzystam:

Kod:

PS1='${debian_chroot:+($debian_chroot)}[33[01;32m]u@h[33[00m]:[33[01;34m]w[33[00m]$ '

aaa.. i polecam kolorowego grep-a:

Kod:

export GREP_OPTIONS='--color=auto'
export GREP_COLOR='1;32'

po skasowaniu GREP_COLOR będzie zaznaczać na czerwono (ja wolę zielony)

Offline

 

#5  2007-01-30 19:41:51

  harry666t - Członek DUG

harry666t
Członek DUG
Zarejestrowany: 2007-01-28

Re: Wklej swój .{bash|csh|$YOUR_SHELL}rc

aha, no i jako root mam jeszcze:

Kod:

alias get='apt-get install'
alias getsrc='apt-get source'

Bardzo uprzyjemnia używanie apt-get =]


[ /\/\/\ o_0 ----->>>       Ascii Art Userbar User ]

"steal and steal and steal some more and give it to all your friends and keep on stealin'"
- Reznor

Offline

 

#6  2007-01-30 20:02:57

  azhag - Admin łajza

azhag
Admin łajza
Skąd: Warszawa
Zarejestrowany: 2005-11-15

Re: Wklej swój .{bash|csh|$YOUR_SHELL}rc

Kod:

alias get='apt-get install'
alias getsrc='apt-get source'

Bardzo uprzyjemnia używanie apt-get =][/quote]
Nie lepiej zainstalwoać i używac aptsh?


Błogosławieni, którzy czynią FAQ.
[url=http://www.opencaching.pl]opencaching[/url] :: [url=http://dug.net.pl/sources.list]debian sources.list[/url] :: [url=http://www.linuxportal.pl/blogi/azhag/wpisy]coś jakby blog[/url] :: [url=http://dug.net.pl/]polski portal debiana[/url] :: linux user #403712

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
To nie jest tylko forum, to nasza mała ojczyzna ;-)

[ Generated in 0.007 seconds, 11 queries executed ]

Informacje debugowania

Time (s) Query
0.00013 SET CHARSET latin2
0.00007 SET NAMES latin2
0.00097 SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='18.216.42.122' WHERE u.id=1
0.00079 UPDATE punbb_online SET logged=1732815996 WHERE ident='18.216.42.122'
0.00052 SELECT * FROM punbb_online WHERE logged<1732815696
0.00048 SELECT topic_id FROM punbb_posts WHERE id=51203
0.00006 SELECT id FROM punbb_posts WHERE topic_id=6633 ORDER BY posted
0.00056 SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=6633 AND t.moved_to IS NULL
0.00005 SELECT search_for, replace_with FROM punbb_censoring
0.00076 SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=6633 ORDER BY p.id LIMIT 0,25
0.00130 UPDATE punbb_topics SET num_views=num_views+1 WHERE id=6633
Total query time: 0.00569 s