This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <limits.h> | |
// [스택 정의] | |
#define STACKSIZE 10 // 스택에 넣을 수 있는 최대 갯수 | |
int stack[STACKSIZE]; // 스택 | |
int top = -1; // 인덱스 변수 | |
// [사용자 정의 함수] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.bashrc | |
_screen_complete() { | |
local width=$(bind -v | sed -n 's/^set completion-display-width //p') | |
if [[ $width -ne 0 ]]; then | |
bind "set completion-display-width 0" | |
PROMPT_COMMAND="bind 'set completion-display-width $width'" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create_completion() { | |
local command=$1 | |
local options=$2 | |
local FILE_NAME=$3 | |
local width=$(bind -v | sed -n 's/^set completion-display-width //p') | |
local func_name="_${command}_complete" | |
local func_body= | |
func_body+="if [[ $width -ne 0 ]]; then " |