Skip to content

Instantly share code, notes, and snippets.

@otzoran
Last active December 25, 2015 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save otzoran/6966741 to your computer and use it in GitHub Desktop.
Save otzoran/6966741 to your computer and use it in GitHub Desktop.
aliases - bash
alias ll='ls -lah --color=tty --time-style=long'
alias grep='grep --color=tty'
alias mydate='date "+%F %H:%M"'
alias olsblk='lsblk -o NAME,FSTYPE,LABEL,MOUNTPOINT,SIZE,TYPE '
alias dv='dirs -v'
alias po='popd '
alias pu='pushd '
alias s='git status '
alias xr='xrandr --verbose --output VGA1 --primary --mode 1920x1080'
#Functions
function echo_path { echo -e ${PATH//:/\\n}; } # print path, one item per line
function settitle { echo -ne "\e]2;$@\a\e]1;$@\a"; } #set xterm (and clones) titlebar (doesnt work with PROMPT_COMMAND defiend below)
#VARs
export PROMPT_COMMAND='history -a;echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}\007"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment