Compare commits

..

1 commit

Author SHA1 Message Date
96d76577aa
Add jq 2025-09-11 19:56:30 +02:00
4 changed files with 9 additions and 17 deletions

View file

@ -24,6 +24,10 @@ mkcd() {
cd "$1"
}
if [ "$PREFERRED_SHELL" = zsh ] && command -v ls > /dev/null; then
exec zsh
fi
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 sgr0)"

View file

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

8
_zshrc
View file

@ -30,11 +30,9 @@ function zle-keymap-select {
}
zle -N zle-keymap-select
if [ -f "$HOME/.config/bashrc" ]; then
emulate sh -c "source $HOME/.config/bashrc"
else if [ -f "$HOME/.bashrc" ];
emulate sh -c "source $HOME/.bashrc"
fi
unset PREFERRED_SHELL
[ -f "$HOME/./config/bashrc" ] && emulate sh -c "source $HOME/./config/bashrc"
[ -f "$HOME/.bashrc" ] && emulate sh -c "source $HOME/.bashrc"
[ -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"

View file

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