mirror of
https://github.com/davegallant/nix-config
synced 2026-01-06 18:22:31 +00:00
Cleanup fish
This commit is contained in:
33
home.nix
33
home.nix
@@ -67,7 +67,6 @@ in
|
|||||||
d = "diff";
|
d = "diff";
|
||||||
dc = "diff --cached";
|
dc = "diff --cached";
|
||||||
dcn = "diff --cached --name-only";
|
dcn = "diff --cached --name-only";
|
||||||
ds = "! git diff origin | sed -r 's/value: (.*)/value: \"************\"/'";
|
|
||||||
l = "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit";
|
l = "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit";
|
||||||
ms = "merge --squash";
|
ms = "merge --squash";
|
||||||
p = "push origin";
|
p = "push origin";
|
||||||
@@ -126,25 +125,24 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
interactiveShellInit = ''
|
interactiveShellInit = ''
|
||||||
set fish_greeting # Disable greeting
|
set fish_greeting
|
||||||
|
|
||||||
# environment variables
|
|
||||||
set -x PAGER less
|
|
||||||
set -x EDITOR vim
|
|
||||||
set -x DOCKER_CLI_HINTS false
|
set -x DOCKER_CLI_HINTS false
|
||||||
set -x TERM xterm-256color
|
|
||||||
set -x DOCKER_DEFAULT_PLATFORM linux/amd64
|
set -x DOCKER_DEFAULT_PLATFORM linux/amd64
|
||||||
|
set -x EDITOR vim
|
||||||
set -x NNN_FIFO "$XDG_RUNTIME_DIR/nnn.fifo"
|
set -x NNN_FIFO "$XDG_RUNTIME_DIR/nnn.fifo"
|
||||||
|
set -x PAGER less
|
||||||
|
set -x TERM xterm-256color
|
||||||
|
|
||||||
# PATH
|
set -x PATH $PATH \
|
||||||
set -x PATH $PATH ~/.cargo/bin
|
~/.cargo/bin \
|
||||||
set -x PATH $PATH ~/.local/bin
|
~/.local/bin \
|
||||||
set -x PATH $PATH ~/.npm-packages/bin
|
~/.npm-packages/bin \
|
||||||
set -x PATH $PATH /opt/homebrew/bin
|
/opt/homebrew/bin \
|
||||||
set -x PATH $PATH ~/.krew/bin
|
~/.krew/bin \
|
||||||
set -x PATH $PATH ~/bin
|
~/bin
|
||||||
|
|
||||||
# Go-related environment
|
# golang
|
||||||
set -x GOPATH ~/go
|
set -x GOPATH ~/go
|
||||||
set -x GOBIN $GOPATH/bin
|
set -x GOBIN $GOPATH/bin
|
||||||
set -x PATH $PATH $GOBIN
|
set -x PATH $PATH $GOBIN
|
||||||
@@ -158,7 +156,6 @@ in
|
|||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
".." = "cd ..";
|
".." = "cd ..";
|
||||||
c = "code";
|
|
||||||
g = "git";
|
g = "git";
|
||||||
gc = "git checkout $(git branch | fzf)";
|
gc = "git checkout $(git branch | fzf)";
|
||||||
gco = "git checkout $(git branch -r | sed -e 's/^ origin\\///' | fzf)";
|
gco = "git checkout $(git branch -r | sed -e 's/^ origin\\///' | fzf)";
|
||||||
@@ -428,9 +425,9 @@ in
|
|||||||
{
|
{
|
||||||
context = "Editor && !menu";
|
context = "Editor && !menu";
|
||||||
bindings = {
|
bindings = {
|
||||||
"ctrl-c" = "editor::Copy";
|
"ctrl-shift-c" = "editor::Copy";
|
||||||
"ctrl-x" = "editor::Cut";
|
"ctrl-shift-x" = "editor::Cut";
|
||||||
"ctrl-v" = "editor::Paste";
|
"ctrl-shift-v" = "editor::Paste";
|
||||||
"ctrl-z" = "editor::Undo";
|
"ctrl-z" = "editor::Undo";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user