summary refs log tree commit diff
path: root/.bashrc
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2021-08-30 18:29:07 +0200
committerRobert Günzler <r@gnzler.io>2021-08-31 12:41:20 +0200
commit43b8194a90f0232189ff75182d05a70b84a8be5e (patch)
treefed8dcf80caa6c77daa6697f318515dd66fdf330 /.bashrc
parentb84cfc5bceacf0d50a7d8e6fc5946dbbf4f2aa08 (diff)
bashrc: cleanup
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc27
1 files changed, 9 insertions, 18 deletions
diff --git a/.bashrc b/.bashrc
index 5d26e67..11b6c04 100644
--- a/.bashrc
+++ b/.bashrc
@@ -6,7 +6,7 @@
 # anything or bad things will happen !
 
 safe_load() {
-	sh="$1" 
+	sh="$1"
 	[ -r "$sh" ] && . "$sh"
 	unset sh
 }
@@ -14,24 +14,14 @@ safe_load() {
 # Test for an interactive shell.  There is no need to set anything
 # past this point for scp and rcp, and it's important to refrain from
 # outputting anything in those cases.
-if [[ $- != *i* ]] ; then
+if [[ $- != *i* ]]; then
 	# Shell is non-interactive.  Be done now!
 	return
 fi
 
-# Make sure to also load ~/.profile for non-login shells
-safe_load ~/.profile
-
-# Spawn sway, if we are on tty1
-#if [[ "$(tty)" = "/dev/tty1" ]] ; then
-	# safe_load $HOME/.config/sway/env
-	# exec dbus-launch --exit-with-session sway -Ddamage=rerender
-#fi
-
-# Enable fzf integration
-# safe_load /etc/profile.d/fzf.sh
-# safe_load "$HOME"/devel/upstream/github.com/lincheney/fzf-tab-completion/bash/fzf-bash-completion.sh
-# bind -x '"\t": fzf_bash_completion'
+# enable bash vi mode
+set -o vi
+bind -m vi-insert -x '"\C-l": clear'
 
 # Append to history file
 shopt -s histappend
@@ -40,11 +30,12 @@ HISTFILESIZE=500000
 
 # enable direnv
 eval "$(direnv hook bash)"
-
+# enable navi
+eval "$(navi widget bash)"
 # enable z.lua
 if [ -d /usr/libexec/z_lua ]; then
 	eval "$(luajit /usr/libexec/z_lua/z.lua --init bash enhanced once fzf)"
-	safe_load /usr/libexec/z_lua/czmod/czmod.bash
+	# safe_load /usr/libexec/z_lua/czmod/czmod.bash
 fi
 
 # enable navi
@@ -83,7 +74,7 @@ alias ssh='TERM=xterm-256color ssh'
 alias balssh='ssh -p 22222 -o User=root -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o Compression=yes'
 alias balscp='scp -P 22222 -o User=root -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o Compression=yes'
 alias k=kubectl
-alias zk='f() { nvim +cd\ ~/.zk +lua\ "require(\"neuron/telescope\").find_zettels({ default_text = \"$1\" })"; }; f'
 alias org='nvim +Orgmode'
 alias suspend=loginctl\ suspend
 alias fm=vifm
+alias rsy=rsyncez