-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
.zshrc
58 lines (48 loc) · 1.89 KB
/
.zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# set screen window name
if [[ $TERM == "screen" ]]; then
preexec() { echo -ne "\033k$1\033\\" }
fi
if [[ $(uname) == "Darwin" ]]; then
alias setup='/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"'
alias lsusb='ioreg -p IOUSB'
#brew install htop mc memtester ecm cmake lame lftp madplay ncdu tcc wget xz coreutils
# disable creating .DS_store files
#defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE
# show all files in Finder
#defaults write com.apple.Finder AppleShowAllFiles true
# Finder show file extensions
#defaults write NSGlobalDomain AppleShowAllExtensions -bool true
#dpkg -L is brew list -v
fi
if [[ $(uname) == "Linux" ]]; then
alias setup=''
#systemctl disable motd-news.timer
#systemctl disable atd
#systemctl disable colord
#systemctl disable bluetooth
#systemctl disable upower
#apt-get --purge remove ubuntu-report modemmanager whoopsie apparmor snapd bolt kerneloops
if [ -f /usr/share/GNUstep/Makefiles/GNUstep.sh ]; then source /usr/share/GNUstep/Makefiles/GNUstep.sh; fi
fi
# set favourite editor, emacs is an alternative
EDITOR=mcedit; export EDITOR
# shell prompt
export PS1='%n@%m:%~%(!.#.$) '
unset RPS1
# if you don't want to see any deprecation warnings from Python
export PYTHONWARNINGS='ignore::PendingDeprecationWarning,ignore::DeprecationWarning'
# history
HISTSIZE=100000
SAVEHIST=100000
HISTFILE=~/.history
# debian packages
DEBEMAIL="alex@aiei.ch"; export DEBEMAIL
DEBFULLNAME="Alex Myczko"; export DEBFULLNAME
# blank and lock screen
alias xlock='xset s blank; xset s 600; xset dpms force off; i3lock -c000000'
# trim whitespaces
alias rtrim="sed -i 's/[ \t]*$//'"
# reboot
alias reb00t="echo 1 > /proc/sys/kernel/sysrq;echo b > /proc/sysrq-trigger"
# ls tricks
alias ls="echo CONFIG.SYS AUTOEXEC.BAT TEMP WINDOWS My Documents PROGRA~1"