Skip to content

Commit

Permalink
refactor: move exports to sessionVariables
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamHsieh committed Jan 8, 2024
1 parent 9b2d637 commit e98ea2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 0 additions & 7 deletions config/zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@

# auto attach to tmux
[ -n "$PS1" ] && [ -z "$TMUX" ] && [ $SHLVL = 1 ] && $(tmux has-session 2> /dev/null) && tmux a

# export
export LANG=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
export VISUAL="$(command -v nvim 2>/dev/null || command -v vim)"
export EDITOR="$VISUAL"
export MANPAGER='nvim +Man!'
# }}}


Expand Down
5 changes: 5 additions & 0 deletions home/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ in
FZF_COMPLETION_TRIGGER = "~~";
NIX_PATH = "nixpkgs=${inputs.nixpkgs}";
COLORTERM = "truecolor";
LANG = "en_US.UTF-8";
LC_CTYPE = "en_US.UTF-8";
VISUAL = "nvim";
EDITOR = "nvim";
MANPAGER = "nvim +Man!";
};
};

Expand Down

0 comments on commit e98ea2c

Please sign in to comment.