Skip to content

Commit

Permalink
fix(git): use raw string in nushell
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDeDobbeleer committed Dec 26, 2024
1 parent 2681ea1 commit a0aa010
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/shell/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import (
"fmt"
"os/exec"
"strings"

"github.com/jandedobbeleer/aliae/src/context"
)

var (
Expand Down Expand Up @@ -33,6 +35,10 @@ func (a *Alias) git() string {

// safe to add the alias
format := `git config --global alias.%s '%s'`
if context.Current.Shell == NU {
format = `git config --global alias.%s r#'%s'#`
}

return fmt.Sprintf(format, a.Name, a.Value)
}

Expand Down

0 comments on commit a0aa010

Please sign in to comment.