【求助】误删了主目录下的.dmrc文件,谁帮我copy一份,谢谢

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
头像
dogfox
论坛版主
帖子: 5311
注册时间: 2006-09-02 14:18
来自: 汉桑城
联系:

【求助】误删了主目录下的.dmrc文件,谁帮我copy一份,谢谢

#1

帖子 dogfox » 2007-07-15 8:35

昨天在操作的时候误删了~下的.dmrc文件
这个文件的作用是shell下的Tab键功能
没有这个文件就无法正常让Tab键发挥作用,需要一个个的打字
5555
copy方法:

代码: 全选

cd 
gedit .dmrc
然后把打开的内容copy到回复即可
格式为

代码: 全选

[code].dmrc内容
[/code]
谢谢!
上次由 dogfox 在 2007-07-21 11:35,总共编辑 1 次。
全世界linux爱好者联合起来 !
norfound
帖子: 54
注册时间: 2007-04-05 18:43

#2

帖子 norfound » 2007-07-15 9:17

[Desktop]
Session=default
Language=en_US.UTF-8
头像
xhy
帖子: 3916
注册时间: 2005-12-28 1:16
系统: Ubuntu 12.10 X64
来自: 火星

#3

帖子 xhy » 2007-07-15 10:35

这跟TAB没关系
这个文件是负责X session的语言选择的
目前负债150多万
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

#4

帖子 zhuqin_83 » 2007-07-16 12:13

你有没有搞错阿?.dmrc和tab没有任何关系。删掉了,登录就会自动重建。
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
头像
hualang0929
帖子: 1226
注册时间: 2006-11-11 10:23
来自: Mars
联系:

#5

帖子 hualang0929 » 2007-07-16 12:42

zhuqin_83 写了:你有没有搞错阿?.dmrc和tab没有任何关系。删掉了,登录就会自动重建。
是跟tab没关系,这个文件只是保存默认会话和语言而已。
不过删除了会自动重建吗?我试过好像要自己手动建的,要不会话登录不了,只能进入安全模式。
抬头望星空一片晴,我独行,夜已渐寒……
头像
dogfox
论坛版主
帖子: 5311
注册时间: 2006-09-02 14:18
来自: 汉桑城
联系:

#6

帖子 dogfox » 2007-07-16 13:00

奇怪啊
那我的tab怎么无法正常使用了那?
全世界linux爱好者联合起来 !
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

#7

帖子 zhuqin_83 » 2007-07-16 13:14

那应该是.bashrc给删掉了。
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
头像
dogfox
论坛版主
帖子: 5311
注册时间: 2006-09-02 14:18
来自: 汉桑城
联系:

#8

帖子 dogfox » 2007-07-19 8:57

zhuqin_83 写了:那应该是.bashrc给删掉了。
麻烦你给我一份好吗?
全世界linux爱好者联合起来 !
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

#9

帖子 zhuqin_83 » 2007-07-20 5:22

新建一个用户应该就有了吧?我的包含了一下自己的东西,不便给你。
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
littleUbuntu
帖子: 1103
注册时间: 2006-10-19 9:02

#10

帖子 littleUbuntu » 2007-07-20 7:35

新建一个用户,拷贝过来即可。
头像
dogfox
论坛版主
帖子: 5311
注册时间: 2006-09-02 14:18
来自: 汉桑城
联系:

#11

帖子 dogfox » 2007-07-21 11:36

新建一个用户好像不行
谁可以copy一份给我啊?
全世界linux爱好者联合起来 !
来诺
帖子: 494
注册时间: 2007-01-13 1:02
联系:

#12

帖子 来诺 » 2007-07-21 15:38

代码: 全选

# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# 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
# ... and ignore same sucessive entries.
export HISTCONTROL=ignoreboth

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

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"

# 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)
fi
来诺
帖子: 494
注册时间: 2007-01-13 1:02
联系:

#13

帖子 来诺 » 2007-07-21 15:39

代码: 全选

# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color)
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
    ;;
*)
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
    ;;
esac

# Comment in the above and uncomment this below for a color prompt
#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
    ;;
*)
    ;;
esac
上次由 来诺 在 2007-07-21 15:44,总共编辑 1 次。
来诺
帖子: 494
注册时间: 2007-01-13 1:02
联系:

#14

帖子 来诺 » 2007-07-21 15:42

代码: 全选

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

#if [ -f ~/.bash_aliases ]; then
#    . ~/.bash_aliases
#fi

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

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

来诺
帖子: 494
注册时间: 2007-01-13 1:02
联系:

#15

帖子 来诺 » 2007-07-21 15:43

代码: 全选

# some aliases i make
alias mys='mysql -u root -p'

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi
拼吧。。。。。
回复