dotfiles/bash/.bashrc
2022-04-29 18:47:24 +05:30

27 lines
537 B
Bash

function csv {
# Format and display csv files in terminal
if [ $# -lt 1 ]; then
echo "Please specify file name"
elif [ -f $1 ]; then
# https://stackoverflow.com/questions/1875305/view-tabular-file-such-as-csv-from-command-line
column -s, -t < $1 | less -#2 -N -S
else
echo "$1: File not found"
#exit 1
fi
}
# Set primary prompt
PS1='fam@ubu:\w\$ '
# Ubuntu aliases
alias ll='ls -alF'
# More aliases
alias tmux='tmux -u'
alias calsh='bash /home/calsh.sh'
alias sml='rlwrap sml'
alias ghci='rlwrap ghci'