Coder Social home page Coder Social logo

chusiang / tuxenv Goto Github PK

View Code? Open in Web Editor NEW
15.0 4.0 2.0 780 KB

my dotfiles for Linux and macOS console environment (bash, tmux, vim like ...)

Home Page: http://note.drx.tw

License: MIT License

Makefile 8.16% Shell 86.93% Perl 0.95% Python 3.93% HTML 0.03%
dotfiles console linux-environment shell

tuxenv's Introduction

tuxENV | chusiang

This is my dotfiles for Linux and macOS console environment.

If you like Vim, you can see my vimrc, and you can quick get my environment with hacking-ubuntu.ansible.

Setup

  1. Clone tuxENV.
$ git clone https://github.com/chusiang/tuxENV.git
$ cd tuxENV/
  1. Install
$ make install
  
# install tmux plugins.
$ tmux
# → <Ctrl> + A + I
  1. Update
$ make update
  1. Backup
$ make backup

Configuration

  1. bash
  2. mosh
  3. muttator
  4. pentadactyl
  5. rxvt-unicode:
  6. screen
  7. tmux

Reference

License

Copyright (c) chusiang from 2011 under the MIT license.

tuxenv's People

Contributors

chusiang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

hyfone ninehole90

tuxenv's Issues

Fix unicode issue under macOS x iTerm2

2016.08.01 拿到新 MacBook Pro 時發現 sdcv 查詢出來的結果會用 unicode 的方式呈現,不太正常,原來是因為 stardict 附的字典是使用 Big5 的關係,只需在 sdcv 後代上 --utf8-output 的參數即可解決。


  1. Enviroment:

    • macOS v10.11.6
    • iTerm2 v3.0.7
  2. 比較一下有無使用 --utf8-output 參數的差別。

    $ sdcv penguin
    Found 1 items, similar to penguin.
    -->\u725b\u6d25\u73fe\u4ee3\u82f1\u6f22\u96d9\u89e3\u8a5e\u5178
    -->penguin
    
    / 5peNgwIn; `pZN^wIn/ n black and white sea-bird living in the Antarctic, with webbed feet and wings like flippers that are used for swimming \u4f01\u9d5d.
    
    $ sdcv --utf8-output penguin
    Found 1 items, similar to penguin.
    -->牛津現代英漢雙解詞典
    -->penguin
    
    / 5peNgwIn; `pZN^wIn/ n black and white sea-bird living in the Antarctic, with webbed feet and wings like flippers that are used for swimming 企鵝.
    
  3. 附上截圖。

    2016-08-15-sdcv-unicode-and-big5

Reference

Build tmux v2.2 on `$HOEM/.local`

I want to use the tmux v2.2 on Ubuntu 14.04, and I don't want to use third-party source, so I select built it at $HOME/.local.

  1. Download tmux v2.2.

    $ wget https://github.com/tmux/tmux/releases/download/2.2/tmux-2.2.tar.gz
    $ tar zxvf tmux-2.2.tar.gz
    
  2. Install necessary packages.

    $ sudo aptitude install libevent-dev
    
  3. Setting build target.

    $ ./configure --prefix=/home/<USERNAME>/.local
    
  4. Build it.

    $ make & make install
    
  5. Add $PATH.

    $ echo 'export PATH="~/.local/bin:$PATH"' >> ~/.bashrc
    

Done.

Reference

Cancel the ESC key + j, k at screen

在 tmux 可以使用 set -s escape-time 0 取消 ESC 的延遲來避開 ESC + j, k 時會前後切換 window (or screen),但 screen 似乎沒有這個選項?待有空再來解了。

$ man tmux
....
escape-time time
    Set the time in milliseconds for which tmux waits after an escape is input to determine if it is part of a function or meta key sequences.  The default is 500 milliseconds.

Add alias for docker command

近來一直在使用 docker command 在操作,可以自建 alias 來簡化指令。

# - Docker
alias dalias='alias | grep docker | sed "s/alias\ //"'
alias dei='docker execute -it'
alias di='docker images'
alias dpa='docker ps -a'
alias dps='docker ps'
alias drd='docker run -d'
alias dri='docker run -it'
alias drm='docker rm $(docker ps -a -q)'
alias drmf='docker rm -f $(docker ps -a -q)'

Reference

Can't binding the `vi-copy` on tmux v2.4

這兩天將 macOS 10.11 上的 tmux 從 v2.3_3 升上 v2.4 後,執行 tmux 時出現無法用 vi-copy 綁定 vy 進行選取複製的動作。

/Users/USERNAME/.tmux.conf:247: invalid or unknown command: bind-key -t vi-copy 'v' begin-selection
/Users/USERNAME/.tmux.conf:248: invalid or unknown command: bind-key -t vi-copy 'y' copy-selection

tmux/tmux#610 得知 tmux v2.4 需改用 copy-mode-vi 的方式進行設定。

  • tmux v2.3.

    bind-key -t vi-copy 'v' begin-selection
    bind-key -t vi-copy 'y' copy-selection
    
  • tmux v2.4.

    bind-key -T copy-mode-vi 'v' send -X begin-selection
    bind-key -T copy-mode-vi 'y' send -X copy-selection
    

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.