Skip to content

Commit

Permalink
alt+x to duplicate terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
cumber committed Nov 4, 2020
1 parent 7f13926 commit d97d2a9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .config/nixpkgs/overlays/zdotdir/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -169,5 +169,13 @@ function nsh() {
# cabal/ghc completion
source "@zsh-haskell@/haskell.plugin.zsh"

# Use alt+x as keyboard shortcut for launching a child shell (which
# will inherit the environment of this zsh)
function spawn-alacritty {
alacritty &!
}
zle -N spawn-alacritty
bindkey '^[x' spawn-alacritty

# Starship prompt
eval "$(@starship@/bin/starship init zsh)"

0 comments on commit d97d2a9

Please sign in to comment.