dotfiles

paulirish活跃维护

Paul Irish 的 fish、bash、git 等终端配置文件合集,开箱即用,适合想快速搭好顺手机场环境的人参考或直接抄。

paul's fish, bash, git, etc config files. good stuff.

暂无版本4,361star +2 / 7 天1,249fork同步于 2026-11-10 17:39 UTC

怎么上手

由 README 提炼,执行前请确认
git submodule update --init
硬件要求按 README 说明

README 未说明

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

Paul Irish 的 fish/bash/git 等配置文件集合,可挑选其中的别名、函数和 readline 配置来用

Paul Irish 的 fish、bash、git 等终端配置文件合集,开箱即用,适合想快速搭好顺手机场环境的人参考或直接抄。

核心能力

  • 提供 fish 与 bash 的别名和函数配置
  • 用 .inputrc 实现大小写不敏感的 Tab 补全
  • 用 z 命令快速跳转到常用目录
  • 提供 cdf 命令跳转到 Finder 当前目录
  • 包含 .gitconfig 别名与 macOS 默认设置脚本

容易踩的坑

作者不建议整体套用,建议只挑需要的文件;使用 fish 配置前需先初始化 git submodule;z 需要安装后 cd 一段时间才能学习目录

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Paul's dotfiles

    • I maintain this repo as my dotfiles, but I'm keenly aware people are using it for theirs.
    • You're quite welcome to make suggestions, however I may decline if it's not of personal value to me.
    • If you're starting off anew, consider forking mathias or alrra. paulmillr and gf3 also have great setups

    Setup

    I would not suggest you just wholesale use my dotfiles. But there's a few files where there's great goodies you can steal.

    shell

    This repo contains config for fish and bash. As of 2016, I primarily use fish shell, but fall back to bash once in a while. The bash and fish stuff are both well maintained. If you're using fish you'll want to do a git submodule update --init.

    my favorite parts.

    aliases and functions

    So many goodies.

    The "readline config" (.inputrc)

    Basically it makes typing into the prompt amazing.

    • tab like crazy for autocompletion that doesnt suck. tab all the things. srsly.
    • no more that says "Display all 1745 possibilities? (y or n)" YAY
    • type cat <uparrow> to see your previous cats and use them.
    • case insensitivity.
    • tab all the livelong day.

    .gitconfig

    • err'body gotta have their aliases. I'm no different.

    Moving around in folders (z, ..., cdf)

    z helps you jump around to whatever folder. It uses actual real magic to determine where you should jump to. Seperately there's some ... aliases to shorten cd ../.. and .., .... etc. Then, if you have a folder open in Finder, cdf will bring you to it.

    z dotfiles
    z blog
    ....      # drop back equivalent to cd ../../..
    z public
    cdf       # cd to whatever's up in Finder
    

    z learns only once its installed so you'll have to cd around for a bit to get it taught. Lastly, I use open . to open Finder from this path. (That's just available normally.)

    overview of files

    shell environment
    • .aliases, .bash_profile, .bash_prompt, .bashrc, .exports, .functions
    manual run
    • setup-a-new-machine.sh - random apps i need installed
    • symlink-setup.sh - sets up symlinks for all dotfiles and vim config.
    • .macos - run on a fresh mac os setup
    • brew.sh & brew-cask.sh - homebrew initialization
    git, brah
    • .gitconfig
    • .gitignore

    Sensible OS X defaults in .macos

    Mathias's repo is the canonical for this, but you should probably run his or mine after reviewing it.

    ~/bin

    One-off binaries that aren't via an npm global or homebrew. git open, subl for Sublime Text, and some other git utilities.

    2020 update

    Rust folks have made a few things that are changing things.

    Dotfiles mgmt todo

    Also I'd like to migrate to using one of these:

    also interested in https://github.com/dandavison/open-in-editor

    SSH authenticate with security key

    (presumably you've already upgraded from passwords to using ssh public key authentication.. but this is an alternative if you want the security key challenge)

    Been doing this for a while.. forgot how i learned it and nobody has it documented that I can find...

    Run on client machine:

    ssh-add -L | grep ecdsa-sha2-nistp256@
    

    This outputs a ecdsa-sha2-nistp256 key for me. I know it's registered for my hardware security key.

    Put that in whatever authorized_keys of your remote host. That's it.