Compare commits

..

4 commits

Author SHA1 Message Date
2750db6238
Autostart zsh 2025-09-13 15:34:05 +02:00
nixos-install.sh
7c47af8396
nvim: Remove old plugin 2025-09-13 15:34:05 +02:00
nixos-install.sh
9893c85ce2
Bind caps to ESC in flake 2025-09-13 15:34:05 +02:00
93f6820546
Add jq 2025-09-13 15:34:05 +02:00
4 changed files with 17 additions and 9 deletions

View file

@ -24,10 +24,6 @@ mkcd() {
cd "$1" cd "$1"
} }
if [ "$PREFERRED_SHELL" = zsh ] && command -v ls > /dev/null; then
exec zsh
fi
export PS1=" export PS1="
$(tput bold)$(tput setaf 1)[$(tput setaf 3)\u$(tput setaf 2)@$(tput setaf 4)\H $(tput setaf 5)\w$(tput setaf 1)]$(tput setaf 7) $(tput bold)$(tput setaf 1)[$(tput setaf 3)\u$(tput setaf 2)@$(tput setaf 4)\H $(tput setaf 5)\w$(tput setaf 1)]$(tput setaf 7)
$ $(tput sgr0)" $ $(tput sgr0)"

View file

@ -1,7 +1,6 @@
call plug#begin(stdpath('data') . '/plugged') call plug#begin(stdpath('data') . '/plugged')
Plug 'preservim/nerdtree' Plug 'preservim/nerdtree'
Plug 'tpope/vim-fugitive' Plug 'tpope/vim-fugitive'
Plug 'vim-syntastic/syntastic'
Plug 'junegunn/fzf.vim' Plug 'junegunn/fzf.vim'
Plug 'tpope/vim-surround' Plug 'tpope/vim-surround'
Plug 'mg979/vim-visual-multi' Plug 'mg979/vim-visual-multi'

8
_zshrc
View file

@ -30,9 +30,11 @@ function zle-keymap-select {
} }
zle -N zle-keymap-select zle -N zle-keymap-select
unset PREFERRED_SHELL if [ -f "$HOME/.config/bashrc" ]; then
[ -f "$HOME/./config/bashrc" ] && emulate sh -c "source $HOME/./config/bashrc" emulate sh -c "source $HOME/.config/bashrc"
[ -f "$HOME/.bashrc" ] && emulate sh -c "source $HOME/.bashrc" else if [ -f "$HOME/.bashrc" ];
emulate sh -c "source $HOME/.bashrc"
fi
[ -f "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ] && source "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" [ -f "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ] && source "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
[ -f "/usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh" ] && source "/usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh" [ -f "/usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh" ] && source "/usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh"

View file

@ -78,11 +78,23 @@
}; };
}; };
programs.bash.enable = true;
programs.bash.initExtra = ''
exec ${pkgs.zsh}/bin/zsh
'';
programs.fzf = { programs.fzf = {
enable = true; enable = true;
enableZshIntegration = true; enableZshIntegration = true;
}; };
home.keyboard = {
variant = null;
options = [
"caps:escape" # make Caps = Escape
];
};
# Put extra packages in the *user* profile (not system) # Put extra packages in the *user* profile (not system)
home.packages = with pkgs; [ home.packages = with pkgs; [
ripgrep ripgrep
@ -115,7 +127,6 @@
# Environment variables only for this user/session # Environment variables only for this user/session
home.sessionVariables = { home.sessionVariables = {
EDITOR = "nvim"; EDITOR = "nvim";
PREFERRED_SHELL = "zsh";
}; };
# Good HM hygiene # Good HM hygiene