-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbashrc.sh
52 lines (49 loc) · 1.58 KB
/
bashrc.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#===============================================================================
#
# Global Bash Configuration
#===============================================================================
# Load Guard {{{
# Check for an interactive session
[ -z "$PS1" ] && return
# }}}
#===============================================================================
# Aliases {{{
alias ls='ls --hyperlink=auto --color=auto'
alias grep='grep --color=auto'
alias df='df -h'
alias du='du -h'
alias ftp='ncftp'
alias vim='nvim'
alias icat='kitty +kitten icat'
# }}}
#===============================================================================
# Variables {{{
# Use vim as default editor
export BROWSER=firefox
export EDITOR=kak
export VISUAL=kak
# Man farbig gestalten
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;34m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'
# Add Rust Path to PATH
export PATH="$PATH:$HOME/.cargo/bin"
# }}}
#===============================================================================
# Commands {{{
# unmap ctrl-s for mapping it in vim
stty stop undef
# }}}
#===============================================================================
# Erweiterten Prompt einstellen {{{
function set_windows_titles() {
trap 'echo -ne "\033]2;$(pwd); $(history 1 | sed "s/^[ ]*[0-9]*[ ]*//g")\007"' DEBUG
}
starship_precmd_user_func="set_windows_titles"
# }}}
#===============================================================================
# vim: fdm=marker: