浏览代码

Move shell-neutral config to .aliases and .profile

Frans Bergman 5 年之前
父节点
当前提交
f218884f84
共有 3 个文件被更改,包括 35 次插入5 次删除
  1. 6 0
      .aliases
  2. 28 0
      .profile
  3. 1 5
      .zshrc

+ 6 - 0
.aliases

@@ -0,0 +1,6 @@
+alias ccat="highlight --out-format=ansi"
+alias ytdl="youtube-dl"
+alias r="ranger"
+alias v="vim"
+alias m="mutt"
+alias h="htop"

+ 28 - 0
.profile

@@ -0,0 +1,28 @@
+# ~/.profile: executed by the command interpreter for login shells.
+
+# the default umask is set in /etc/profile; for setting the umask
+# for ssh logins, install and configure the libpam-umask package.
+#umask 022
+
+export PATH="$PATH:$HOME/.cargo/bin:$HOME/.scripts:$HOME/bin"
+export BROWSER="firefox"
+export READER="zathura"
+export MAKEFLAGS="-j$(nproc)"
+export EDITOR="vim"
+export LESSOPEN="|lesspipe.sh %s"
+
+# less colors
+export LESS=-R
+export LESS_TERMCAP_mb=$(tput bold; tput setaf 2) # green
+export LESS_TERMCAP_md=$(tput bold; tput setaf 6) # cyan
+export LESS_TERMCAP_me=$(tput sgr0)
+export LESS_TERMCAP_so=$(tput bold; tput setaf 3; tput setab 4) # yellow on blue
+export LESS_TERMCAP_se=$(tput rmso; tput sgr0)
+export LESS_TERMCAP_us=$(tput smul; tput bold; tput setaf 7) # white
+export LESS_TERMCAP_ue=$(tput rmul; tput sgr0)
+export LESS_TERMCAP_mr=$(tput rev)
+export LESS_TERMCAP_mh=$(tput dim)
+export LESS_TERMCAP_ZN=$(tput ssubm)
+export LESS_TERMCAP_ZV=$(tput rsubm)
+export LESS_TERMCAP_ZO=$(tput ssupm)
+export LESS_TERMCAP_ZW=$(tput rsupm)

+ 1 - 5
.zshrc

@@ -98,11 +98,7 @@ source $ZSH/oh-my-zsh.sh
 # alias zshconfig="mate ~/.zshrc"
 # alias ohmyzsh="mate ~/.oh-my-zsh"
 
-alias ccat="highlight --out-format=ansi"
-
-export MAKEFLAGS="-j$(nproc)"
-export EDITOR="vim"
-LESSOPEN="|lesspipe.sh %s"; export LESSOPEN
+source ~/.aliases
 
 bindkey -v