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