You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
768 B
26 lines
768 B
# If not running interactively, don't do anything |
|
[[ "$-" != *i* ]] && return |
|
|
|
export EDITOR=vim |
|
#PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ ' |
|
GREEN="\[\e[0;32m\]" |
|
RED="\[\e[0;31m\]" |
|
YELLOW="\[\e[1;33m\]" |
|
RESET="\[\e[0m\]" |
|
|
|
PS1="[$GREEN\u$RESET@$RED\h$RESET:$YELLOW\w$RESET]$" |
|
|
|
# Some shortcuts for different directory listings |
|
alias ls='ls -hF --color=tty --group-directories-first' # classify files in colour |
|
alias ll='ls -l' # long list |
|
alias grep='grep --color' |
|
alias tmux='tmux -2' |
|
|
|
# Umask |
|
# |
|
# /etc/profile sets 022, removing write perms to group + others. |
|
# Set a more restrictive umask: i.e. no exec perms for others: |
|
# umask 027 |
|
# Paranoid: neither group nor others have any perms: |
|
# umask 077 |
|
|
|
|