From 291597424bc5289018fed791e17ce6a81d197a66 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Tue, 27 Jun 2017 09:19:26 +0200 Subject: [PATCH] Thingies in a parallel universe --- bashrc | 8 +++----- inputrc | 2 ++ scripts/install-prefs | 8 +++++--- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/bashrc b/bashrc index 784433b..244e02f 100644 --- a/bashrc +++ b/bashrc @@ -46,8 +46,6 @@ alias dmesg='dmesg --ctime' # Frequent mistakes alias systemclt=systemctl -alias docker='sudo docker' -alias docker-compose='sudo docker-compose' # Shortcuts for commonly used commands alias ll="ls -l $LS_OPTIONS" @@ -119,7 +117,7 @@ fuck() { if which thefuck &> /dev/null then eval $(thefuck --alias) - fuck + fuck $@ else echo "thefuck is not installed on this system." fi @@ -128,12 +126,12 @@ alias FUCK='fuck' # Node Version Manager nvm() { + export NVM_DIR="$HOME/.nvm" if [ -s "$NVM_DIR/nvm.sh" ] then . "$NVM_DIR/nvm.sh" [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" - export NVM_DIR="$HOME/.nvm" - nvm + nvm $@ else echo "NVM is not installed on this system." fi diff --git a/inputrc b/inputrc index c95c889..0ac0721 100644 --- a/inputrc +++ b/inputrc @@ -8,9 +8,11 @@ set keymap vi-command # these are for vi-command mode "\e[A": history-search-backward "\e[B": history-search-forward +Control-l: clear-screen set keymap vi-insert # these are for vi-insert mode "\e[A": history-search-backward "\e[B": history-search-forward +Control-l: clear-screen $endif diff --git a/scripts/install-prefs b/scripts/install-prefs index 33f4601..7159c13 100755 --- a/scripts/install-prefs +++ b/scripts/install-prefs @@ -164,6 +164,8 @@ function altInst { # Common CLI +.Xresources.d/configure + # Utils inst coreutils man openssl-tool grep sed sh tar if [ $TERMUX == 1 ]; then @@ -180,7 +182,7 @@ else fi if [[ $ARCH == 1 && $ADMIN == 1 ]]; then inst pkgfile - systemctl enable pkgfile-update.timer + sudo systemctl enable pkgfile-update.timer fi # Dev @@ -227,7 +229,7 @@ python $HOME/.vim/bundle/YouCompleteMe/install.py $YCM_ARGS if [ $GUI == 1 ]; then # Desktop manager - inst i3 i3lock i3status dunst unclutter xautolock feh numlockx scrot + inst i3 i3lock i3status dunst unclutter xautolock feh numlockx scrot xterm xclip if [ $DEBIAN == 1 ]; then inst suckless-tools if [ $ADMIN == 0 ]; then @@ -285,7 +287,7 @@ if [ $EXTRA == 1 ]; then # Extra GUI if [ $GUI == 1 ]; then - inst vlc gimp mpd vimpc + inst vlc gimp mpd vimpc alsa-utils if [ $ARCH == 1 ]; then inst simplescreenrecorder