Browse Source

- remove unnecessary nix packages add them - ncdu, alacritty

+ bash aliases file
+ spacevim
+ username formatting for starship terminal
master
dimti 2 years ago
parent
commit
53fd7fa1ab
  1. 7
      .bash_aliases
  2. 14
      .config/nix/installed_packages
  3. 8
      .config/starship.toml
  4. 16
      .config/yadm/bootstrap
  5. 3
      .shell-env

7
.bash_aliases

@ -0,0 +1,7 @@
alias gst='git status'
alias ga='git add'
alias gc='git commit -m'
alias gush='git push'
alias gull='git pull'
alias gb='git branch'
alias vim='nvim'

14
.config/nix/installed_packages

@ -1,22 +1,14 @@
nixpkgs.alacritty
nixpkgs.btop nixpkgs.btop
nixpkgs.cacert
nixpkgs.cmake
nixpkgs.coreutils
nixpkgs.croc
nixpkgs.curl nixpkgs.curl
nixpkgs.direnv nixpkgs.direnv
nixpkgs.fd nixpkgs.fd
nixpkgs.fzf
nixpkgs.git nixpkgs.git
nixpkgs.git-lfs
nixpkgs.gnumake
nixpkgs.go
nixpkgs.jq nixpkgs.jq
nixpkgs.lesspipe
nixpkgs.lsd nixpkgs.lsd
nixpkgs.ncdu
nixpkgs.neovim nixpkgs.neovim
nixpkgs.nix nixpkgs.nix
nixpkgs.nix-zsh-completions
nixpkgs.ripgrep nixpkgs.ripgrep
nixpkgs.silver-searcher nixpkgs.silver-searcher
nixpkgs.starship nixpkgs.starship
@ -25,5 +17,3 @@ nixpkgs.tmux
nixpkgs.unzip nixpkgs.unzip
nixpkgs.wget nixpkgs.wget
nixpkgs.yadm nixpkgs.yadm
nixpkgs.zplug
nixpkgs.zsh

8
.config/starship.toml

@ -1,5 +1,6 @@
format = """ format = """
$jobs\ $jobs\
$username\
$character\ $character\
""" """
@ -54,3 +55,10 @@ stashed = ""
format = "[$hostname]($style)" format = "[$hostname]($style)"
ssh_only = true ssh_only = true
style = "150" style = "150"
[username]
style_user = 'white bold'
style_root = 'black bold'
format = '[$user]($style) '
disabled = false
show_always = true

16
.config/yadm/bootstrap

@ -23,22 +23,24 @@ install_nix() {
command -v nix >/dev/null 2>&1 || install_nix_bin command -v nix >/dev/null 2>&1 || install_nix_bin
} }
configure_zsh() {
# FIXME: We deserve better
source $HOME/.zshrc
}
configure_vim() { configure_vim() {
# Install vim-plug for Vim # Install vim-plug for Vim
#curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim #curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
#vim +'PlugInstall --sync' +qa #vim +'PlugInstall --sync' +qa
# Install vim-plug for Neovim # Install vim-plug for Neovim
# This is temporary disable, because that it hundreds modules and many error on compilation stage of this
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
nvim +'PlugInstall --sync' +qa nvim +'PlugInstall --sync' +qa
} }
install_spacevim() {
# https://habr.com/ru/companies/cloud4y/articles/574450/
curl -sLf https://spacevim.org/install.sh | bash
}
install_nix install_nix
#configure_zsh
configure_vim
#configure_vim
install_spacevim

3
.shell-env

@ -3,7 +3,8 @@
## ##
## Editors ## Editors
## ##
export EDITOR=vi
export EDITOR=nvim
export TERMINAL=alacritty
export GIT_EDITOR="$EDITOR" export GIT_EDITOR="$EDITOR"
export USE_EDITOR="$EDITOR" export USE_EDITOR="$EDITOR"
export VISUAL=$EDITOR export VISUAL=$EDITOR

Loading…
Cancel
Save