Index: Makefile =================================================================== --- Makefile (revision 494922) +++ Makefile (working copy) @@ -3,7 +3,7 @@ PORTNAME= alacritty PORTVERSION= 0.2.9 DISTVERSIONPREFIX= v -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= x11 MAINTAINER= zeising@FreeBSD.org Index: files/patch-src_event.rs =================================================================== --- files/patch-src_event.rs (nonexistent) +++ files/patch-src_event.rs (working copy) @@ -0,0 +1,19 @@ +Let Alacritty open new instances in the shell's current working directory + +https://github.com/jwilm/alacritty/pull/2162 + +--- src/event.rs.orig 2019-02-11 23:59:21 UTC ++++ src/event.rs +@@ -172,7 +172,11 @@ impl<'a, N: Notify + 'a> input::ActionContext for Acti + + #[cfg(unix)] + let args = { +- if let Ok(path) = fs::read_link(format!("/proc/{}/cwd", unsafe { tty::PID })) { ++ #[cfg(not(target_os = "freebsd"))] ++ let proc_prefix = ""; ++ #[cfg(target_os = "freebsd")] ++ let proc_prefix = "/compat/linux"; ++ if let Ok(path) = fs::read_link(format!("{}/proc/{}/cwd", proc_prefix, unsafe { tty::PID })) { + vec!["--working-directory".into(), path] + } else { + Vec::new() Property changes on: files/patch-src_event.rs ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property