Created
February 10, 2024 13:23
-
-
Save calvez/ea7616d3876fbcf7800eaf4340c17e27 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Shell is non-interactive. Be done now! | |
[ -z "$PS1" ] && return | |
[[ $- != *i* ]] && return | |
# Display | |
shopt -s checkwinsize | |
# Umask | |
umask 077 | |
# Colors | |
eval "`dircolors -b`" | |
export PS1='\[\033[01;33m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] ' | |
# Aliases | |
alias ls='ls --color=auto' | |
alias dir='dir --color=auto' | |
alias vdir='vdir --color=auto' | |
#alias grep='grep --color=auto' | |
#alias fgrep='fgrep --color=auto' | |
#alias egrep='egrep --color=auto' | |
alias ll='ls -l' | |
alias la='ls -A' | |
alias l='ls -CF' | |
# No history | |
export HISTFILE=/dev/null | |
export HISTCONTROL=ignoredups | |
export HISTFILESIZE=2 | |
export HISTSIZE=100000000 | |
# Http proxy for wget & co. | |
#export http_proxy="antani" | |
#export PROXY="antani" | |
unset http_proxy | |
unset PROXY | |
# Encryption | |
encrypt(){ gpg -ac --no-options "$1"; } | |
decrypt(){ gpg --no-options "$1"; } | |
# Completion | |
[ -f /etc/bash_completion ] && . /etc/bash_completion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment