Browse Source

changed aliases & some new tools

Hans Martin 3 years ago
parent
commit
44f3b9b88d
2 changed files with 20 additions and 10 deletions
  1. 8 8
      .bash_aliases
  2. 12 2
      install.sh

+ 8 - 8
.bash_aliases

@@ -13,6 +13,14 @@ alias v='nvim'
 alias vi='nvim'
 alias vim='nvim'
 
+# modern-unix tools
+[ -f "$(which duf)" ] && alias df="duf"
+[ -f "$(which fd)" ] && alias find="fd -H"
+[ -f "$(which rg)" ] && alias grep="rg"
+
+# cat on wings
+alias bat='bat --theme zenburn'
+
 # Run vifmrun for image preview with ueberzug
 alias vifm="$HOME/.config/vifm/scripts/vifmrun"
 
@@ -34,14 +42,6 @@ alias ...='cd ../..'
 # ripgrep > grep
 alias ogrep='/usr/bin/grep --color=auto -i' # keep original grep as ogrep
 
-# source: github.com/sharkdp/fd
-alias find='fd -H'
-# backup of original find
-alias ofind='/usr/bin/find'
-
-# cat on wings
-alias bat='bat --theme zenburn'
-
 # default image viewer
 alias img=sxiv
 

+ 12 - 2
install.sh

@@ -1,4 +1,14 @@
-#!/bin/sh
+#!/usr/bin/zsh
 
 # most important tools that are _always_ needed
-sudo pacman -Sy fzf fd neovim ripgrep nmap hexyl ctags git podman ueberzug
+sudo pacman -Sy fzf fd neovim ripgrep nmap hexyl ctags git podman ueberzug duf
+
+# .zpretzo
+echo "[*] Installing zpretzo"
+cd $HOME
+git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
+
+setopt EXTENDED_GLOB
+for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
+  ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
+done