dot_testing/bash/bashrc

45 lines
786 B
Bash
Raw Normal View History

2022-02-05 22:58:21 -06:00
#!/bin/bash
# some housekeeping
set -o vi
shopt -s autocd
2022-10-18 18:19:26 -05:00
alias rc=". ~/.config/bash/bashrc"
alias erc="nvim ~/.config/bash/bashrc"
alias reload=". ~/.config/bash/bashrc; . ~/.config/bash/profile"
2022-02-05 22:58:21 -06:00
# ssh keeping tidy
alias ssh="ssh -F $HOME/.config/ssh/config"
# remind alias
alias sched="nvim $DOTREMINDERS"
2022-02-22 13:52:11 -06:00
alias cal="rem -cl"
2022-10-17 13:20:52 -05:00
alias shutdown="sudo shutdown -h now"
2022-10-18 18:19:26 -05:00
alias ls="ls --color=auto"
2022-11-10 14:35:43 -06:00
alias irssi="irssi --home=$HOME/.config/irssi"
2022-10-18 18:19:26 -05:00
PS1="\w\$ "
# repos func
repos() {
sel="$(ls ~/git | fzy | awk '{print "/home/usr/git/"$1}')"
[ "$?" -eq 1 ] && exit
cd "$sel"
}
2022-10-18 18:19:26 -05:00
files() {
sel=`find /home/$(whoami) | fzy -l 50`
[ -z "$sel" ] && return 1
[ -d "$sel" ] && cd "$sel" || nvim "$sel"
return 0
}
2022-11-27 13:17:51 -06:00
rss() {
cd ~/.local/share/sfeed/
sfeed_curses *
cd -
}
2022-10-18 18:19:26 -05:00
alias f=files