相关疑难解决方法(0)

有什么有用的东西可以添加到一个人的 .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万
查看次数

交互式 shell 提示?

你最喜欢的贝壳技巧是什么?是什么让你的日常命令行使用起来更容易?

我的,对于 bash:

将此添加到您的主目录中的 .inputrc 文件中:

"\e[A": history-search-backward
"\e[B": history-search-forward
Run Code Online (Sandbox Code Playgroud)

现在,当您在提示符下开始键入时,箭头键将在您的历史记录中搜索以您已经键入的内容开头的任何其他命令。

unix shell bash

5
推荐指数
2
解决办法
989
查看次数

标签 统计

bash ×2

bashrc ×1

command-line-interface ×1

dotfiles ×1

linux ×1

shell ×1

unix ×1