Last active
December 25, 2015 11:09
-
-
Save otzoran/6966741 to your computer and use it in GitHub Desktop.
aliases - bash
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
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