diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-25 23:21:30 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-25 23:21:30 +0900 |
| commit | b53eab9f9c607284503bbc58c806005704ba2252 (patch) | |
| tree | 7c487b9c7497c96066f2051db1d1fdb110b6c896 | |
| parent | 947e3603d265487a8ff946948ed69baf8d88c8c7 (diff) | |
| download | dotfiles-b53eab9f9c607284503bbc58c806005704ba2252.tar.gz dotfiles-b53eab9f9c607284503bbc58c806005704ba2252.tar.zst dotfiles-b53eab9f9c607284503bbc58c806005704ba2252.zip | |
| -rw-r--r-- | home-manager/config/fish/config.fish | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/home-manager/config/fish/config.fish b/home-manager/config/fish/config.fish index 68d1fbf..8e2acc5 100644 --- a/home-manager/config/fish/config.fish +++ b/home-manager/config/fish/config.fish @@ -38,7 +38,7 @@ function __cd_parent_dir cd .. commandline -f repaint end -bind \cj __cd_parent_dir +bind ctrl-j __cd_parent_dir function __cd_prev_dir if [ -n (commandline) ] @@ -47,20 +47,20 @@ function __cd_prev_dir cd - commandline -f repaint end -bind \co __cd_prev_dir +bind ctrl-o __cd_prev_dir function __cd_project_root_dir if [ -n (commandline) ] return end - if [ (git rev-parse --is-inside-work-tree 2>/dev/null) = 'true' ] + if [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = 'true' ] cd (git rev-parse --show-toplevel) commandline -f repaint end end -bind \cg __cd_project_root_dir +bind ctrl-g __cd_project_root_dir -bind \cz fg +bind ctrl-z fg bind ctrl-x,ctrl-e edit_command_buffer |
