全部博文(185)
分类: LINUX
2008-11-16 16:39:48
chsh -s /usr/bin/fish 命令可把fish shell改变成当前用户的默认登机shell。其有很多特点,比如:
1.Standard features: history, command and file completion。2.Brand new features: command option completion, commandcompletion with short description, syntax highlighting。3.Easier to any open files: open builtincommand。4.Much simpler and consistent syntax (not POSIX compliant)Makes it easier to create shell scripts。
要进入某个文件夹可以直接写上文件夹名字,如 > home,而在bash shell下则使用# cd home。它的颜色显示也非常醒目,用用就知道了。
在bash shell下,环境变量的设置一般放在~/.bash_profile或~/.bashrc文件中。fish shell则存放在~/.config/fish/config.fish(~表示当前用户的home目录)文件中.比如设置路径变量,set PATH $PATH /sbin。
具体介绍和使用可参考:
1.
2.