Files
gists/config/bash_aliases

19 lines
1.1 KiB
Bash

PS1='\[\033]0;\u - \w\007\]\[\033[44;37m\]'$(printf '_%.0s' $(seq 1 $(tput cols)))'\[\033[1;0m\]\r\n\t \w :\n\$ '
[[ -f ~/.bash_prompt ]] && . ~/.bash_prompt
alias mv="mv -vi"
alias cp="cp -vi"
alias '+'='pushd .'
alias -- '-'='popd'
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
alias pushalert='pushover --title "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
[[ -f ~/.shell_aliases ]] && . ~/.shell_aliases
[[ -f ~/.config/z.sh ]] && . ~/.config/z.sh
[[ -f ~/.oh-my-zsh/plugins/z/z.sh ]] && . ~/.oh-my-zsh/plugins/z/z.sh && set $_Z_OWNER=$(whoami)
[[ -f ~/.cargo/bin/zoxide ]] && . <(~/.cargo/bin/zoxide init bash)
[[ -f ~/.http_proxy ]] && . /home/tke/.http_proxy #PROXY_A93JK2
[[ -f /usr/share/doc/fzf/examples/key-bindings.bash ]] && source /usr/share/doc/fzf/examples/key-bindings.bash
[[ -f /usr/share/doc/fzf/examples/completion.bash ]] && source /usr/share/doc/fzf/examples/completion.bash
HISTTIMEFORMAT="%F %T "
shopt -s autocd
alias ll='lsd -lAF'