标签: dotfiles

有什么有用的东西可以添加到一个人的 .bashrc 中?

有什么是你不能没有的,会让我的生活变得更轻松吗?以下是我使用的一些(“磁盘空间”和“文件夹”特别方便)。

# some more ls aliases
alias ll='ls -alh'
alias la='ls -A'
alias l='ls -CFlh'
alias woo='fortune'
alias lsd="ls -alF | grep /$"

# This is GOLD for finding out what is taking so much space on your drives!
alias diskspace="du -S | sort -n -r |more"

# Command line mplayer movie watching for the win.
alias mp="mplayer -fs"

# Show me the size (sorted) of only the folders in this directory
alias folders="find . -maxdepth 1 -type d -print …
Run Code Online (Sandbox Code Playgroud)

linux bash command-line-interface dotfiles bashrc

141
推荐指数
16
解决办法
14万
查看次数

什么是有用的 .screenrc 设置?

基本上就像我在下面发布的一些我自己的一样。我正在寻找程序“屏幕”的附加功能。至少看看最后一行屏幕会话底部的一个很棒的“菜单栏”。

## gyaresu's .screenrc 2008-03-25
# http://delicious.com/search?p=screenrc

# Don't display the copyright page
startup_message off

# tab-completion flash in heading bar
vbell off

# keep scrollback n lines
defscrollback 1000

# Doesn't fix scrollback problem on xterm because if you scroll back
# all you see is the other terminals history.
# termcapinfo xterm|xterms|xs|rxvt ti@:te@

# These will let you use 
bind -c selectHighs 0 select 10 #these three commands are 
bind -c selectHighs 1 select 11 #added to the …
Run Code Online (Sandbox Code Playgroud)

linux bash command-line-interface dotfiles gnu-screen

54
推荐指数
5
解决办法
11万
查看次数

21
推荐指数
3
解决办法
3217
查看次数

如何在鱼壳中永久设置 $TERM ?

我用fish。我正在尝试使用solarized themevim在里面运行,但是除非我运行,否则颜色会损坏:tmux

set -lx TERM screen-256color-bce;
Run Code Online (Sandbox Code Playgroud)

跑步前tmux attach

每天都要运行它很烦人,所以我想永久设置 TERM 变量。但是,当我使用以下命令设置此特定变量时,fish 似乎忽略了set -U

$ set -U foo bar; echo $foo
foo bar
$ set -U TERM screen-256color-bce; echo $TERM
TERM xterm
$ set -lx TERM screen-256color-bce; echo $TERM
TERM screen-256color-bce
Run Code Online (Sandbox Code Playgroud)

我甚至试图把set -lx TERM screen-256color-bce~/.config/fish/config.fish,而是一个新的鱼(启动外tmux)总是TERM设置为xterm

shell dotfiles environment-variables fish

7
推荐指数
1
解决办法
3118
查看次数

._(点下划线)是来自 Mac OS X 吗?

我正在清理一些由 Mac OS X 处理过的文件。这也是 FTP 传输的目的地。我知道.DS_Store文件。但是我看到了一些._XXXX文件,即。以点和下划线为前缀的文件。那是某种 Mac OS X 备份/传输文件吗?他们会从哪里来?

dotfiles mac-osx

1
推荐指数
2
解决办法
1516
查看次数