summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2022-09-16 13:58:35 -0700
committerxyz <gky44px1999@gmail.com>2022-09-16 13:58:35 -0700
commitc2a53abfd0ec62b7aabe42b8b17459ed59a56f4f (patch)
tree064391988213fe50a7bbd4b1ee30e7d4891fecaf /home
parentfb58cde9a48d7481c2d6039b338707ba3ffcead2 (diff)
alacritty make `o .` work again
Diffstat (limited to 'home')
-rw-r--r--home/xyz/.bashrc2
-rwxr-xr-xhome/xyz/.local/bin/alacritty6
2 files changed, 4 insertions, 4 deletions
diff --git a/home/xyz/.bashrc b/home/xyz/.bashrc
index 0084a006..ff948929 100644
--- a/home/xyz/.bashrc
+++ b/home/xyz/.bashrc
@@ -74,8 +74,6 @@ alias l='\ls --color=auto -A --group-directories-first'
alias ll='\ls --color=auto -lAh --group-directories-first'
alias lpg='loop ping github.com'
alias m=man
-# temporary solution
-alias op='o "$PWD"'
alias p=pacman
alias pt=pactree
alias pu=paru
diff --git a/home/xyz/.local/bin/alacritty b/home/xyz/.local/bin/alacritty
index 64cedfcc..36b0aed7 100755
--- a/home/xyz/.local/bin/alacritty
+++ b/home/xyz/.local/bin/alacritty
@@ -1,4 +1,6 @@
#!/bin/sh
-# https://github.com/MithicSpirit/dotfiles/blob/master/.local/bin/alacritty
-/usr/bin/alacritty msg create-window "$@" || /usr/bin/alacritty "$@"
+# https://github.com/MithicSpirit/dotfiles/blob/bb5cce2268f473e5b17759448ee7715b4163fe66/.local/bin/alacritty
+# use `--working-directory "$PWD"` so when do `o .` will launch alacritty in current dir
+# without `msg create-window` no need --working-directory for `o .` to work
+/usr/bin/alacritty msg create-window --working-directory "$PWD" "$@" || /usr/bin/alacritty "$@"