diff options
Diffstat (limited to '.bashrc')
| -rw-r--r-- | .bashrc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/.bashrc b/.bashrc index 525e5ed..784d49b 100644 --- a/.bashrc +++ b/.bashrc @@ -19,6 +19,9 @@ if [[ $- != *i* ]] ; then 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 @@ -44,14 +47,14 @@ if [ -d /usr/libexec/z_lua ]; then safe_load /usr/libexec/z_lua/czmod/czmod.bash fi +# enable navi +eval "$(navi widget bash)" + # Use keychain to reuse the ssh-agent and gpg-agent between logins keychain --agents ssh,gpg -q id_rsa # AF6AB8C8B10436B9F61293632143BD2AAB94BCC4 safe_load "$HOME/.keychain/$(hostname)-sh" safe_load "$HOME/.keychain/$(hostname)-sh-gpg" -# Make sure to also load ~/.profile for non-login shells -safe_load ~/.profile - # Set prompt # export PS1="$(prompt)" if ! [[ "${PROMPT_COMMAND:-}" =~ _prompt_hook ]]; then @@ -73,8 +76,10 @@ alias v=nvim alias l='exa --long --classify --group --header --group-directories-first' alias lt='exa --classify --group-directories-first -T' alias ..='cd ..' +alias grep='grep --color=auto' alias cat=bat alias ssh='TERM=xterm-256color ssh' alias balssh='ssh -p 22222 -o User=root -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null' alias balscp='scp -P 22222 -o User=root -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null' alias k=kubectl +alias zk='f() { nvim +cd\ ~/.zk +lua\ "require(\"neuron/telescope\").find_zettels({ default_text = \"$1\" })"; }; f' |