Last active
February 23, 2019 10:36
-
-
Save olivergondza/689fcd50155c36876efc to your computer and use it in GitHub Desktop.
Shell env
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
#!/bin/bash | |
# Set a default shell prompt: | |
function promptcmd() { | |
ret=$? | |
rst='\[\e[0m\]' | |
if [[ $ret = 0 ]]; then | |
color='\[\e[0;32m\]' | |
ret='' | |
else | |
color="\[\e[0;31m\]" | |
ret=" $color($ret)" | |
fi | |
export PS1="$color\u@\h\[\e[0;37m\]:$color\w$ret $rst\$ " | |
export PS2="$color>$rst " | |
} | |
export PROMPT_COMMAND="promptcmd; history -a" | |
export HISTCONTROL=ignoreboth | |
export IGNOREEOF=1 | |
shopt -s histappend | |
export EDITOR="joe" | |
export BROWSER="opera" | |
alias ls="ls -F --color=auto"; | |
alias grep="grep --color=auto" | |
alias ssh="TERM=xterm ssh" | |
alias gti="git" | |
alias eject="eject -T &" | |
alias feh="feh -F" | |
alias susp="systemctl suspend" | |
alias hiber="systemctl hibernate" | |
alias halt="systemctl poweroff" | |
alias stats="conky -bd" | |
alias xpdf="xpdf -z page" | |
alias cal="cal -m3" | |
alias date="date --iso-8601" | |
alias ll="ls -lh" | |
alias usage="du -ha | sort -h" | |
alias qplayer="mplayer -really-quiet" | |
alias xlock="xlock -mode blank" | |
alias chromium="chromium --ignore-certificate-errors" | |
alias rdesktop='rdesktop -5 -K -k en-us -g 1440x900 -r clipboard:PRIMARYCLIPBOARD' | |
alias xfreerdp='xfreerdp -g 1440x900 --plugin cliprdr' |
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
"\e[A": history-search-backward | |
"\e[B": history-search-forward |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment