Skip to content

Commit

Permalink
Nushell plugins and miscellaneous improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
d-gubert committed Jan 27, 2025
1 parent cc70c4f commit 49e51ba
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
23 changes: 11 additions & 12 deletions .config/nushell/config.nu
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,24 @@
# You can remove these comments if you want or leave
# them for future reference.

## Config

$env.config = {
show_banner: false,
buffer_editor: nvim,
edit_mode: vi,
cursor_shape: {
vi_insert: block,
vi_normal: underscore,
},
render_right_prompt_on_last_line: false
## Config - using the object syntax changes the whole config, better to do setting by setting

$env.config.show_banner = false
$env.config.buffer_editor = 'nvim'
$env.config.edit_mode = 'vi'
$env.config.render_right_prompt_on_last_line = true
$env.config.cursor_shape = {
vi_insert: line,
vi_normal: blink_block,
}

$env.EDITOR = 'nvim'

## Aliases

alias l = ls -la
alias bat = batcat
alias v = nvim

#### Git

Expand All @@ -48,7 +48,6 @@ alias ga = git add
alias gb = git branch
alias gd = git diff
alias gp = git push
#alias gpsup = "git push --set-upstream origin $(git_current_branch)"
alias glog = git log --oneline --decorate --graph
alias gl = git pull
alias gw = git worktree
Expand Down
2 changes: 2 additions & 0 deletions .config/nushell/env.nu
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ $env.gopath = "$HOME/dev/go"
path add "/usr/local/go/bin"
path add "$env.gopath/bin"
path add ~/.cargo/bin
## Carapace setup - needs to run before config.nu
mkdir ~/.cache/carapace
carapace _carapace nushell | save --force ~/.cache/carapace/init.nu
Expand Down
2 changes: 1 addition & 1 deletion .config/starship.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
add_newline = false

format = "$directory$character"
format = "$directory"
right_format = "$all"

[line_break]
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
history.txt
plugin.msgpackz

0 comments on commit 49e51ba

Please sign in to comment.